Skip to content

Commit 09e9f81

Browse files
committed
test(aws-lambda-python): remove hard-coded references to @aws-cdk/aws-lambda
Remove the hard coded reference to the @aws-cdk/aws-lambda packages from the test, which should fix the issue that prevent building the aws-cdk-lib package. Copied from (and kudos to!) #15826 Related #15586
1 parent 5255344 commit 09e9f81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/@aws-cdk/aws-lambda-python/test/bundling.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Code, Runtime } from '@aws-cdk/aws-lambda';
44
import { FileSystem } from '@aws-cdk/core';
55
import { stageDependencies, bundle } from '../lib/bundling';
66

7-
jest.mock('@aws-cdk/aws-lambda');
7+
jest.spyOn(Code, 'fromAsset');
88

99
jest.mock('child_process', () => ({
1010
spawnSync: jest.fn(() => {

0 commit comments

Comments
 (0)