CI with vitest report

This commit is contained in:
Laurent GAY
2025-06-05 16:29:56 +02:00
committed by setop
parent 9adbde944f
commit f1cbfe4a17
2 changed files with 5 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ vitest:
before_script:
- npm install --frozen-lockfile
script:
- npm run coverage --reporter=default --reporter=junit --outputFile.junit=./junit.xml
- npm run coverage
artifacts:
when: always
paths:

View File

@@ -111,8 +111,12 @@ export default defineConfig(({ command }) => {
"@": path.resolve(__dirname, "./src"),
},
},
reporter: ["junit", "default"],
outputFile: "./junit.xml",
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
reportsDirectory: "./coverage",
},
setupFiles: [path.resolve(__dirname, "./tests/unit/setup.ts")],
include: [path.resolve(__dirname, "./tests/unit/specs/**/*.spec.ts")],