diff --git a/jest.config.js b/jest.config.js index c1edf3074..631d0b9c4 100644 --- a/jest.config.js +++ b/jest.config.js @@ -34,7 +34,7 @@ module.exports = { testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], coverageThreshold: { global: { - statements: 87, + statements: 88, // 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 }, }, diff --git a/src/layouts/vehicle-damage/windshield-options/windshield-damage-type-question/windshield-damage-type-question.spec.js b/src/layouts/vehicle-damage/windshield-options/windshield-damage-type-question/windshield-damage-type-question.spec.js index c843a321b..da19f5308 100644 --- a/src/layouts/vehicle-damage/windshield-options/windshield-damage-type-question/windshield-damage-type-question.spec.js +++ b/src/layouts/vehicle-damage/windshield-options/windshield-damage-type-question/windshield-damage-type-question.spec.js @@ -42,6 +42,12 @@ describe("windshield-damage-type-question.vue", () => { mountOptions.propsData = { modelValue: modelValueProp }; + const mockMixin = { + methods: { + getCmsContent: jest.fn() + } + } + mountOptions.mixins = [mockMixin]; const wrapper = shallowMount(windshieldDamageTypeQuestion, mountOptions);