CI with vitest report
This commit is contained in:
@@ -134,7 +134,7 @@ vitest:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm install --frozen-lockfile
|
- npm install --frozen-lockfile
|
||||||
script:
|
script:
|
||||||
- npm run coverage --reporter=default --reporter=junit --outputFile.junit=./junit.xml
|
- npm run coverage
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -111,8 +111,12 @@ export default defineConfig(({ command }) => {
|
|||||||
"@": path.resolve(__dirname, "./src"),
|
"@": path.resolve(__dirname, "./src"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
reporter: ["junit", "default"],
|
||||||
|
outputFile: "./junit.xml",
|
||||||
coverage: {
|
coverage: {
|
||||||
|
provider: "v8",
|
||||||
reporter: ["text", "json", "html"],
|
reporter: ["text", "json", "html"],
|
||||||
|
reportsDirectory: "./coverage",
|
||||||
},
|
},
|
||||||
setupFiles: [path.resolve(__dirname, "./tests/unit/setup.ts")],
|
setupFiles: [path.resolve(__dirname, "./tests/unit/setup.ts")],
|
||||||
include: [path.resolve(__dirname, "./tests/unit/specs/**/*.spec.ts")],
|
include: [path.resolve(__dirname, "./tests/unit/specs/**/*.spec.ts")],
|
||||||
|
|||||||
Reference in New Issue
Block a user