test(coverage): enable coverage reporting with lcov for Vitest

This commit is contained in:
Naoki Oketani
2025-05-02 14:17:12 +00:00
parent 2564984eab
commit 3d0a464b5e
3 changed files with 713 additions and 159 deletions

869
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -39,6 +39,7 @@
"@types/node": "^20.0.0",
"@typescript-eslint/parser": "^6.7.4",
"@vercel/ncc": "^0.38.3",
"@vitest/coverage-v8": "^3.1.2",
"eslint": "^8.51.0",
"eslint-plugin-github": "^4.10.1",
"eslint-plugin-jest": "^27.4.2",

View File

@@ -6,7 +6,7 @@ export default defineConfig({
environment: 'node',
include: ['__tests__/**/*.test.ts'],
coverage: {
reporter: ['text', 'json', 'html'],
reporter: ['text', 'json', 'html', 'lcov'],
},
},
});