CI for vitest
This commit is contained in:
@@ -136,6 +136,7 @@ vitest:
|
|||||||
- npm install --frozen-lockfile
|
- npm install --frozen-lockfile
|
||||||
script:
|
script:
|
||||||
- npm run coverage
|
- npm run coverage
|
||||||
|
- ls -la .
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -112,11 +112,10 @@ export default defineConfig(({ command }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
reporter: ["junit", "default"],
|
reporter: ["junit", "default"],
|
||||||
outputFile: "./junit.xml",
|
outputFile: path.resolve(__dirname, "./junit.xml"),
|
||||||
coverage: {
|
coverage: {
|
||||||
provider: "v8",
|
|
||||||
reporter: ["text", "json", "html"],
|
reporter: ["text", "json", "html"],
|
||||||
reportsDirectory: "./coverage",
|
reportsDirectory: path.resolve(__dirname, "./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