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(aws-cdk-lib): increase jest test speed, remove warnings #26854

Merged
merged 21 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 9 additions & 1 deletion packages/aws-cdk-lib/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ module.exports = {
// Limit workers to a reasonable fixed number. If we scale in the number of available CPUs, we will explode
// our memory limit on the CodeBuild instance that has 72 CPUs.
maxWorkers: Math.min(8, cpuCount - 1),
preset: 'ts-jest',
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
// Skips type checking
isolatedModules: true,
},
],
},
testMatch: [
'<rootDir>/**/test/**/?(*.)+(test).ts',
],
Expand Down
6 changes: 3 additions & 3 deletions tools/@aws-cdk/cdk-build-tools/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ module.exports = {
"text-summary",
],
coveragePathIgnorePatterns: [
"<rootDir>/lib/.*\\.generated\\.[jt]s",
"<rootDir>/test/.*\\.[jt]s",
"<rootDir>/.warnings.jsii.js",
"\\.generated\\.[jt]s$",
"<rootDir>/test/",
".warnings.jsii.js$",
],
reporters: [
"default",
Expand Down
Loading