Skip to content

Commit

Permalink
test(aws-lambda-python): remove hard-coded references to @aws-cdk/aws…
Browse files Browse the repository at this point in the history
…-lambda (aws#15994)

Remove the hard coded reference to the @aws-cdk/aws-lambda packages from the
test, which should fix the issue that prevent building the package as an alpha module in v2.

This was previously done in aws#15921, but I missed these entries in the tests.

related aws#15586

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
njlynch authored and hollanddd committed Aug 26, 2021
1 parent a830532 commit 941248e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-lambda-python/test/function.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test('PythonFunction with defaults', () => {
});

expect(bundle).toHaveBeenCalledWith(expect.objectContaining({
entry: expect.stringMatching(/@aws-cdk\/aws-lambda-python\/test\/lambda-handler$/),
entry: expect.stringMatching(/aws-lambda-python\/test\/lambda-handler$/),
outputPathSuffix: '.',
}));

Expand All @@ -65,7 +65,7 @@ test('PythonFunction with index in a subdirectory', () => {
});

expect(bundle).toHaveBeenCalledWith(expect.objectContaining({
entry: expect.stringMatching(/@aws-cdk\/aws-lambda-python\/test\/lambda-handler-sub$/),
entry: expect.stringMatching(/aws-lambda-python\/test\/lambda-handler-sub$/),
outputPathSuffix: '.',
}));

Expand Down Expand Up @@ -142,4 +142,4 @@ test('allows specifying hash type', () => {
S3Key: 'MY_CUSTOM_HASH',
},
});
});
});

0 comments on commit 941248e

Please sign in to comment.