Commit 6844256
The CDK Jest suite (//cdk:test) is ~91% of the CI build step (~649s of
~710s on the 4-core runner). ts-jest type-checks every file during the
test transform, duplicating the authoritative type-check already done by
//cdk:compile (tsc --build) in the same build DAG.
Switch both cdk/ and cli/ Jest transforms to a dedicated tsconfig.jest.json
that sets isolatedModules:true (transpile-only, no type-check). cdk's jest
tsconfig also pins module:CommonJS so dynamic import() downlevels to require()
(NodeNext would leave native import(), breaking jest's vm without
--experimental-vm-modules). Type-safety is unchanged: //cdk:compile and
//cli:compile remain the type-check gate.
Local timings (8-core):
//cdk:test 314s -> 155s (~2x)
//cli:test 104s -> 4s (type-check was nearly the entire CLI cost)
All 2041 CDK + 355 CLI tests pass; coverage thresholds unchanged and met.
This is an alternative to the @swc/jest approach explored on #357: same
speedup, zero test-file changes (no ES import-hoisting fallout).
Co-authored-by: bgagent <345885+scottschreckengaust@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 3d6dbbe commit 6844256
4 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments