Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-03-04 22:15:48 +01:00
parent 0e04b91f15
commit bc1458d5a0
4 changed files with 5 additions and 5 deletions

View file

@ -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:

2
.gitignore vendored
View file

@ -30,4 +30,4 @@ dist/
coverage
.env
data
reports/*.xml
reports/*

View file

@ -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",

View file

@ -21,6 +21,6 @@ export default defineConfig({
outDir: 'dist/static',
},
test: {
outputFile: 'reports/unittest.xml',
outputFile: 'reports/unittest.json',
},
})