From e9dd1ab408fbf5ce65c77b2ec3b8a8f12dceb888 Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Wed, 5 Oct 2022 10:59:34 +0200 Subject: [PATCH] chore: use fixed package versions in integ tests (#22360) When running the integ tests we install a bunch of packages that are necessary just for the tests. We indiscriminately install the latest versions, and now `axios` has released a new MV with breaking changes, so our tests fail. Install known versions for all of them. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk/test/integ/common/jest-test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk/test/integ/common/jest-test.bash b/packages/aws-cdk/test/integ/common/jest-test.bash index b29ca90036d38..7a96a9f845155 100755 --- a/packages/aws-cdk/test/integ/common/jest-test.bash +++ b/packages/aws-cdk/test/integ/common/jest-test.bash @@ -5,7 +5,7 @@ function invokeJest() { # package.json. if ! npx --no-install jest --version; then echo 'Looks like we need to install jest first. Hold on.' >& 2 - npm install --prefix .. jest jest-junit aws-sdk axios + npm install --prefix .. jest@^27 jest-junit@^14 aws-sdk@^2 axios@^0.27.2 fi # This must --runInBand because parallelism is arranged for inside the tests