Skip to content

Migrate tests to Vitest browser mode; enable strict TypeScript - #57

Merged
piotrl merged 3 commits into
masterfrom
claude/vitest-strict-ts-524ea6
Nov 3, 2026
Merged

piotrl merged 3 commits into
masterfrom
claude/vitest-strict-ts-524ea6

Conversation

@piotrl

@piotrl piotrl commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Jest + ts-jest → Vitest 5.1.0 with jsdom (no Playwright/browser install in CI), v8 coverage with the previous thresholds. 127/127 tests pass.
  • tsconfig.json: target es2022, strict: true, moduleResolution: bundler; new typecheck script wired into build:check.
  • Minimal source edits for strict mode: CacheStorage field init moved into the constructor (es2022 define semantics), one Error cast in gh-data-loader.ts, ApiRepository.description is string | null.
  • esbuild → 0.28.2 to satisfy Vite's peer range.

Notes

  • Tests with done callbacks converted to promises; constructor mocks use function instead of arrows (Vitest requirement).
  • Merged master (sass → plain CSS); Jest config and CSS mock removed.

🤖 Generated with Claude Code

piotrl and others added 3 commits November 3, 2026 22:02
Vitest 5.1.0 + Playwright Chromium (headless), v8 coverage with the
previous thresholds. esbuild and sass bumped to satisfy vite peers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@piotrl
piotrl merged commit 727cf15 into master Nov 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant