diff --git a/packages/aws-cdk-lib/aws-lambda-nodejs/test/package-manager.test.ts b/packages/aws-cdk-lib/aws-lambda-nodejs/test/package-manager.test.ts index 1abd310c65e4d..342b399154ac1 100644 --- a/packages/aws-cdk-lib/aws-lambda-nodejs/test/package-manager.test.ts +++ b/packages/aws-cdk-lib/aws-lambda-nodejs/test/package-manager.test.ts @@ -52,7 +52,7 @@ test('from a bun.lockb', () => { const packageManager = PackageManager.fromLockFile('/path/to/bun.lockb'); expect(packageManager.lockFile).toEqual(LockFile.BUN); expect(packageManager.argsSeparator).toBeUndefined(); - expect(packageManager.installCommand).toEqual(['bun', 'install', '--frozen-lockfile']); + expect(packageManager.installCommand).toEqual(['bun', 'install', '--frozen-lockfile', '--backend', 'copyfile']); expect(packageManager.runCommand).toEqual(['bun', 'run']); expect(packageManager.runBinCommand('my-bin')).toBe('bun run my-bin'); @@ -60,7 +60,7 @@ test('from a bun.lockb', () => { test('from a bun.lockb with LogLevel.ERROR', () => { const packageManager = PackageManager.fromLockFile('/path/to/bun.lockb', LogLevel.ERROR); - expect(packageManager.installCommand).toEqual(['bun', 'install', '--frozen-lockfile', '--silent']); + expect(packageManager.installCommand).toEqual(['bun', 'install', '--frozen-lockfile', '--backend', 'copyfile', '--silent']); }); test('defaults to NPM', () => {