diff --git a/jest.config.js b/jest.config.js index 9355213be..8afac2dcd 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,7 +4,7 @@ module.exports = { preset: "@vue/cli-plugin-unit-jest", transform: { "^.+\\.vue$": "vue-jest", }, moduleFileExtensions: ['js', 'vue'], - collectCoverageFrom: ["src/**/*.{js,vue}",], + collectCoverageFrom: ["src/**/*.{js,vue}", "!src/main.js", "!src/constants/*.js"], //! means exclude from coverage. testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], coverageThreshold: { global: { @@ -12,7 +12,3 @@ module.exports = { } }, }; - -// Exclude constants folder -// Exclude js config files -// Exclude main.js