Exclude some files
This commit is contained in:
parent
dec7defb2a
commit
18bd1d5555
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue