Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-03-04 22:20:30 +01:00
parent abf16aa242
commit dc94e98aa0
4 changed files with 8 additions and 10 deletions

View file

@ -31,13 +31,11 @@ jobs:
run: npm ci
- name: Unit tests
run: npm run test:unit:ci
# - name: Test Report
# uses: dorny/test-reporter@v1
# if: success() || failure()
# with:
# name: Vitest Tests
# path: reports/unittest.json
# reporter: mocha-json
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: reports/*.xml
docker:
runs-on: ubuntu-latest
needs:

2
components.d.ts vendored
View file

@ -36,4 +36,4 @@ declare module 'vue' {
}
}
export { }
export {}

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=json",
"test:unit:ci": "vitest --environment jsdom --run --reporter=junit",
"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.json',
outputFile: 'reports/unittest.xml',
},
})