diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9662d1..e74050c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,8 @@ jobs: if: success() || failure() with: name: Vitest Tests - path: reports/unittest.xml - reporter: jest-junit + path: reports/unittest.json + reporter: mocha-json docker: runs-on: ubuntu-latest needs: diff --git a/.gitignore b/.gitignore index e6a025c..c1737e8 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,4 @@ dist/ coverage .env data -reports/*.xml +reports/* diff --git a/package.json b/package.json index 5f8b558..e4c78fd 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build:backend": "prisma generate && tsc -p tsconfig.backend.json --outDir dist", "preview": "vite preview --port 5050", "test:unit": "vitest --environment jsdom", - "test:unit:ci": "vitest --environment jsdom --run --reporter=junit", + "test:unit:ci": "vitest --environment jsdom --run --reporter=json", "coverage": "vitest run --environment jsdom --coverage", "typecheck": "vue-tsc --noEmit", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", diff --git a/vite.config.ts b/vite.config.ts index f8e2cca..26d47e2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,6 +21,6 @@ export default defineConfig({ outDir: 'dist/static', }, test: { - outputFile: 'reports/unittest.xml', + outputFile: 'reports/unittest.json', }, })