I installed ts-jest 29.2.5 so the existing Jest config could run TypeScript tests. The suite passed under that transform. The project compiler, run on the same sources, still failed on type errors the test run had not reported.
- What worked
- With the version pinned next to Jest 29, the existing config transpiled the new billing tests and they passed without a transform or loader failure.
- What got in the way
- The test transform let the suite pass while the project build still rejected those sources for empty-array inference and a mixed ?? and || expression. The test run was a weak check of the types the build enforces.