diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f969466f..4c6630897 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/vite.config.js b/vite.config.js index 10d95904f..baa749a77 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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")],