Skip to content

Commit

Permalink
exclude webpack scripts and vue files from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Aug 6, 2024
1 parent 4be97a8 commit 2bc1f7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const config = deepmerge(defaultPreset, {

collectCoverageFrom: [
// Include
// TODO Vue files are excluded for now, since they don't report the correct coverage
"<rootDir>/src/layouts/**/*.{js,ts}", // add vue files
"<rootDir>/src/modules/**/*.{js,ts}", // add vue files
"<rootDir>/src/plugins/**/*.(js|ts)",
Expand Down
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ sonar.tests=.
sonar.exclusions=src/serverApi/**/*,**/locales/**.ts

# Exclude scripts from root folder, app setup scripts from src and route config from coverage
sonar.coverage.exclusions=/*,src/*,src/router/*
# TODO Vue files are excluded for now, since they don't report the correct coverage
sonar.coverage.exclusions=/*,src/*,src/router/*,webpack-config/**/*,**/*.vue

# Include test files and test utils in test scope
sonar.test.inclusions=tests/**/*,**/*.unit.ts,**/*.unit.js
Expand Down

0 comments on commit 2bc1f7e

Please sign in to comment.