test: typecheck test files in CI; drop mock-only test; richer chrome mock

- typecheck now also runs tsc over tsconfig.test.json (test files were
  never type-checked before).
- Delete tests/unit/background.test.ts, which only asserted the vitest
  chrome mock's own behavior — every remaining test imports production
  code from src/lib.
- Baseline mock gains runtime.id, storage.session/remove, contextMenus,
  and tabs.sendMessage.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
john kevin asprec
2026-07-14 21:45:22 +08:00
parent d0c4cc947d
commit b7798047dc
4 changed files with 23 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["vitest/globals"]
"types": ["chrome", "vitest/globals"]
},
"include": [
"tests/**/*"