test(frontend): Coverage verbeteren
This commit is contained in:
parent
c47da0c826
commit
4a6b6ee061
10 changed files with 387 additions and 16 deletions
|
@ -9,6 +9,7 @@ export default mergeConfig(
|
|||
environment: "jsdom",
|
||||
exclude: [...configDefaults.exclude, "e2e/**"],
|
||||
root: fileURLToPath(new URL("./", import.meta.url)),
|
||||
testTimeout: 100000,
|
||||
coverage: {
|
||||
reporter: ["text", "json-summary", "json"],
|
||||
// If you want a coverage reports even if your tests are failing, include the reportOnFailure option
|
||||
|
@ -16,14 +17,27 @@ export default mergeConfig(
|
|||
exclude: [
|
||||
"**/*config*",
|
||||
"**/tests/**",
|
||||
"src/**/*.vue",
|
||||
"src/**/*.d.ts",
|
||||
"src/assets/**",
|
||||
"src/data-objects/**",
|
||||
"playwright-report/**",
|
||||
"**/dist/**",
|
||||
"**/e2e/**",
|
||||
"**/*config*",
|
||||
"**/node_modules/**",
|
||||
|
||||
"src/main.ts",
|
||||
"src/router/index.ts",
|
||||
"src/utils/constants.ts",
|
||||
|
||||
"**/*.d.ts",
|
||||
|
||||
"src/**/*.vue",
|
||||
"src/assets/**",
|
||||
"src/i18n/**",
|
||||
|
||||
"src/data-objects/**",
|
||||
"src/exception/**", // TODO Might be useful to test later
|
||||
"src/queries/**", // TODO Might be useful to test later
|
||||
"src/views/learning-paths/gift-adapters/**", // TODO Might be useful to test later
|
||||
"src/services/auth/**", // TODO Might be useful to test later
|
||||
],
|
||||
thresholds: {
|
||||
lines: 50,
|
||||
|
@ -39,6 +53,7 @@ export default mergeConfig(
|
|||
globalSetup: ["./tests/setup-backend.ts"],
|
||||
* In this project, the backend server is started for each test-file individually.
|
||||
*/
|
||||
globalSetup: ["./tests/setup-backend.ts"],
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue