32 lines
1.3 KiB
JavaScript
32 lines
1.3 KiB
JavaScript
module.exports = {
|
|
verbose: true,
|
|
coverageReporters: ["html", "text", "jest-junit", "cobertura"],
|
|
testResultsProcessor: "jest-junit",
|
|
preset: "@vue/cli-plugin-unit-jest",
|
|
transform: { "^.+\\.vue$": "vue-jest" },
|
|
moduleFileExtensions: ["js", "vue"],
|
|
collectCoverageFrom: [
|
|
"src/**/*.{js,vue}",
|
|
"!src/main.js",
|
|
"!src/constants/*.js",
|
|
"!src/router/**/*.js",
|
|
"!src/helpers/unit-test-helper.js",
|
|
"!src/layouts/vehicle-damage/windshield-options/windshield-options.vue",
|
|
"!src/layouts/molding-questions/**/*.vue",
|
|
"!src/layouts/capability-questions/**/*.vue",
|
|
"!src/layouts/part-questions/**/*.vue",
|
|
"!src/layouts/reveal/**/*.vue",
|
|
"!src/layouts/quote/**/*.vue",
|
|
"!src/ux-components/text-link/**/*.vue",
|
|
"!src/common-components/question-chain/**/*.vue",
|
|
"!src/common-components/funnel-header/menu-modal/**/*.vue",
|
|
// END
|
|
], // ! means exclude from coverage.
|
|
testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"],
|
|
coverageThreshold: {
|
|
global: {
|
|
statements: 84,
|
|
// Got the go ahead from Mark to temporarily lower this. Taking out initialize component made the year,make,model and style coverage drop a bit. Once unit tests for license plate lookup, vin lookup and address lookup are in the coverage should go back up to 90
|
|
},
|
|
},
|
|
};
|