diff --git a/jest.config.js b/jest.config.js index 7da59af..223fbe9 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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 "/src/layouts/**/*.{js,ts}", // add vue files "/src/modules/**/*.{js,ts}", // add vue files "/src/plugins/**/*.(js|ts)", diff --git a/sonar-project.properties b/sonar-project.properties index a59f1bc..a3794e3 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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