-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(aws-cdk-lib): increase jest
test speed, remove warnings
#26854
Conversation
Two changes to the `jest` tests: - We are currently running the tests directly from `.ts` source files using `ts-jest`. Disable type checking (by setting `isolatedModules: true`) to improve the speed. This brings down running 4 test suites from an arbitrary service (`aws-servicecatalog`) down from `79s` to `19s` on my machine. - Change the "coverage threshold" ignore files a little to get rid of the "Note: The code generator has deoptimised the styling" errors produced by jest when it wants to read the coverage of the generated source files.
This would be great but it doesn't actually work. It will always prefer Given that we do in-place compilation, this is going to mess with our workflow too much. We'll need to do a deep dive on this. |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Two changes to the
jest
tests:.ts
source files usingts-jest
. Disable type checking (by settingisolatedModules: true
) to improve the speed. This brings down running 4 test suites from an arbitrary service (aws-servicecatalog
) down from79s
to19s
on my machine.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license