actions: frontend test coverage wordt gereport door de workflow
This commit is contained in:
parent
7058263085
commit
ae45ba7ca8
3 changed files with 23 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
"format-check": "prettier --check src/",
|
||||
"lint": "eslint . --fix",
|
||||
"test:unit": "vitest --run",
|
||||
"test:coverage": "vitest --run --coverage.enabled true",
|
||||
"test:e2e": "playwright test"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -9,6 +9,12 @@ export default mergeConfig(
|
|||
environment: "jsdom",
|
||||
exclude: [...configDefaults.exclude, "e2e/**"],
|
||||
root: fileURLToPath(new URL("./", import.meta.url)),
|
||||
coverage: {
|
||||
reporter: ['text', 'json-summary', 'json'],
|
||||
// If you want a coverage reports even if your tests are failing, include the reportOnFailure option
|
||||
reportOnFailure: true,
|
||||
exclude: ['**/*config*'],
|
||||
},
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue