You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 12 main-process tests are TypeScript and held to the bar of other TypeScript under src.
Files (from master at 2044cbc; check the list against the tree before starting):
Every *.test.js directly under src/main/ → .test.ts: cancelRun, checkOutput, debugInfo, getActiveState, pageWindowPreferences, parseAlignment, selectAlignment, selectAstralFile, selectOutputDir, selectPartitionFile, selectTree, updates.
Typing rules: mocks are plain vi.fn(), with a type argument only where a test reads the mock's calls or results and tsc asks for it. A partial store stand-in is cast where it is used; no shared fixture builders. No production source changes: if a typed test exposes a wrong production type, report it for its own ticket.
Acceptance criteria
Commit one is a pure rename (git mv, R100 for every file). Commit two adds the types. yarn react-test passes after each.
The converted files have zero diagnostics under --noImplicitAny, and nothing is added to the typecheck baseline.
No @ts-nocheck and no @ts-ignore. @ts-expect-error appears only with a one-line reason, where a test passes a wrong type on purpose to exercise a runtime guard.
The pull request states the test count per file before and after, and they are equal.
yarn lint, yarn typecheck:baseline and yarn react-test pass.
Activity
Merge pull request #309 from jtklein-agents/298-convert-the-main-proc…
jtklein-agents commentedon Nov 22, 2026
Merged into the spec/295 feature branch in #309.
Replace Jest and Babel with Vitest and convert the tests to TypeScript (