Change coverage threshold

This commit is contained in:
Katie 2022-09-14 10:49:34 -04:00
parent 8e8f663be3
commit 9078221bb7
2 changed files with 1 additions and 14 deletions

View file

@ -25,7 +25,7 @@ module.exports = {
testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"],
coverageThreshold: {
global: {
statements: 90,
statements: 85,
// 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
},
},

View file

@ -218,19 +218,6 @@ describe("vin-lookup.vue", () => {
expect(wrapper.vm.displayInvalidZipAlert).toEqual(true);
expect(wrapper.findComponent({ref: "alertInvalidZip"}).exists()).toBe(true);
})
test("Vin not found => show AlertVinNotFoundWidget", async () => {
// Arrange
const { wrapper } = setupMocks({});
mockOutPromises({});
// Act
await wrapper.vm.forwardButtonAction();
// Assert
expect(wrapper.vm.displayVinNotFoundAlert).toEqual(true);
expect(wrapper.findComponent({cmsWidgetName: "AlertVinNotFoundWidget"}).exists()).toBe(true);
})
})
});