fancive_obsidian-parallel-r.../.c8rc.json
wujunchen 606593e39b test: add c8 coverage harness with source-map remapping
- npm run coverage runs the full suite under c8
- Wire inline source maps into the esbuild test bundles
- Redirect bundles into repo (.test-bundles) under coverage so c8
  processes them; cleaned automatically after the run
- Fix esbuild->v8-to-istanbul source path remap (tests/coverage-sourcemap.js)
- .c8rc.json, .gitignore, dev-dep c8

Note: statement/function totals are degenerate under esbuild bundling;
branch coverage + HTML report are the reliable signals.

Change-Id: I880f5ee1e9a8e5368e27a8e274825f917d972269
2026-05-16 00:22:31 +08:00

16 lines
362 B
JSON

{
"all": false,
"src": ["src"],
"include": ["src/**/*.ts", "main.ts"],
"exclude": [
"src/test-exports.ts",
"tests/**",
"scripts/**",
".e2e/**",
"**/node_modules/**"
],
"excludeAfterRemap": true,
"reporter": ["text-summary", "text", "html", "json-summary"],
"reportsDirectory": "coverage",
"tempDirectory": "coverage/.tmp"
}