Skip to content

Commit e511b71

Browse files
committed
docs: explain layers tests
1 parent 36c5881 commit e511b71

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: layers/tests/e2e/layerPublisher.test.ts

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ import {
2222
import { join } from 'node:path';
2323
import packageJson from '../../package.json';
2424

25+
/**
26+
* This test has two stacks:
27+
* 1. LayerPublisherStack - publishes a layer version using the LayerPublisher construct and containing the Powertools utilities from the repo
28+
* 2. TestStack - uses the layer published in the first stack and contains a lambda function that uses the Powertools utilities from the layer
29+
*
30+
* The lambda function is invoked once and the logs are collected. The goal of the test is to verify that the layer creation and usage works as expected.
31+
*/
2532
describe(`Layers E2E tests, publisher stack`, () => {
2633
const testStack = new TestStack({
2734
stackNameProps: {

0 commit comments

Comments
 (0)