-
Notifications
You must be signed in to change notification settings - Fork 80
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
test: consolidate jest config #3069
Conversation
@@ -33,38 +33,5 @@ | |||
"peerDependencies": { | |||
"aws-cdk-lib": "^2.158.0", | |||
"constructs": "^10.3.0" | |||
}, | |||
"jest": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no tests in this package.
@@ -290,7 +290,6 @@ | |||
"jsii-pacmak": "^1.84.0", | |||
"jsii-rosetta": "^5.4.23", | |||
"rimraf": "^3.0.0", | |||
"ts-jest": "^29.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Installed at root level, so it is not needed here or other sub-packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config was not used because jest is started in each sub-package with lerna run test.
Description of changes
Consolidate jest config by:
jest.config.base.js
file at the rootjest.config.js
in each package in import and extendjest.config.base.js
I did not make any changes to the test config for the E2E tests (which also use jest).
CDK / CloudFormation Parameters Changed
N/A
Issue #, if available
N/A
Description of how you validated changes
Run unit tests
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.