Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix command to run integ tests #20414

Merged
merged 4 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('test runner', () => {
}),
);

expect(results.length).toEqual(0);
expect(results).toEqual([]);
});

test('deploy failed', () => {
Expand Down
5 changes: 4 additions & 1 deletion packages/aws-cdk/test/integ/common/jest-test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ function invokeJest() {
# This must --runInBand because parallelism is arranged for inside the tests
# themselves and they must run in the same process in order to coordinate to
# make sure no 2 tests use the same region at the same time.
npx jest --runInBand --verbose "$@"
#
# Jest is run in a weird way because npx started (NPM 8?) to change directory
# into 'package.json' root, which we don't want here.
$(npx which jest) --runInBand --verbose "$@"
}