Skip to content

Commit

Permalink
chore: use fixed package versions in integ tests (#22360)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
rix0rrr authored Oct 5, 2022
1 parent 7040168 commit e9dd1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/test/integ/common/jest-test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9dd1ab

Please sign in to comment.