Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ jobs:
- name: Install
working-directory: infrastructure
run: npm ci --prefer-offline
- name: Type-check (tsc --noEmit)
working-directory: infrastructure
# Single shared type-check for the whole project. jest now transpiles
# only (isolatedModules), so this is where infra type errors are caught
# on a PR — cheaper once here than re-run inside every jest worker.
run: npm run build
- name: Run tests
working-directory: infrastructure
run: npx jest --maxWorkers=2
Expand Down
6 changes: 6 additions & 0 deletions infrastructure/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ module.exports = {
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.tsx?$': ['ts-jest', {
// Transpile-only: skip per-worker type-checking (each jest worker
// otherwise re-type-checks the whole project with no shared cache, the
// dominant cost of this suite). Type safety is enforced once by the
// `tsc --noEmit` step in the CI job (.github/workflows/tests.yml) and by
// `npm run build` locally. Safe here: no `const enum` in the tree.
isolatedModules: true,
diagnostics: {
ignoreCodes: [151002],
},
Expand Down