CI for vitest

This commit is contained in:
Laurent GAY
2025-06-06 15:39:56 +02:00
committed by setop
parent 740e346469
commit 3d80ebadde
2 changed files with 3 additions and 3 deletions

View File

@@ -136,6 +136,7 @@ vitest:
- npm install --frozen-lockfile
script:
- npm run coverage
- ls -la .
artifacts:
when: always
paths:

View File

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