Files
iptvnator/docs/architecture
4grayandClaude Opus 5.5 a2d4459562 test(perf): type-check the journey harness through typecheck:spec (#1863)
Nothing type-checked apps/electron-backend-e2e: test-performance-harness
runs its specs through `tsx --test` and Playwright transpiles the journeys
without types, so the J3 fixture drifted from JourneyMainIpcCaptureState
(TS2739, fixed in #1797) while CI stayed green.

Add apps/electron-backend-e2e/tsconfig.spec.json. `typecheck:spec`
discovers every tsconfig.spec.json, so the `unit-and-typecheck` job picks
it up without a workflow change. It follows the spec-program convention
(module preserve, bundler resolution) and sets target es2022 and lib
es2022 + dom, because the project's commonjs module and the base es2015
target reject the harness's import.meta, BigInt literals and ES2022 names.
`types: ["node"]` keeps Jest and Mocha globals out of a node:test program.

The include starts with the journey harness (src/journeys/** and
src/performance/*journey*.ts), which type-checks cleanly; reverting the
#1797 fixture reproduces the TS2739. The older benchmark files and the
Electron E2E specs still carry type errors; the include widens as they
are fixed, with no baseline or ignore list.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 08:44:22 +02:00
..