CI with vitest report
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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")],
|
||||
|
||||
Reference in New Issue
Block a user