diff --git a/jest.config.js b/jest.config.js index 33b7d1138..17eb34f17 100644 --- a/jest.config.js +++ b/jest.config.js @@ -15,10 +15,12 @@ module.exports = { "!src/layouts/vehicle-damage/windshield-options/windshield-options.vue", "!src/layouts/reveal/**/*.vue", "!src/ux-components/text-link/**/*.vue", - "!src/common-components/date-picker/**/*.vue", // Temp until unit tests completed + "!src/digital-components/date-picker/**/*.vue", // Temp until unit tests completed "!src/layouts/vin-lookup/**/*.vue", //Temporary for Quote page testing "!src/common-components/funnel-header/menu-modal/**/*.vue", "!src/layouts/schedule/*.vue", // Temp test exclusion while in development + "!src/layouts/schedule/helpers/schedule-helper.js", // Temp test exclusion while in development + "!src/layouts/review/*.vue", // Temp test exclusion while in development // END ], // ! means exclude from coverage. testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], diff --git a/src/digital-components/button-question/button-question.vue b/src/digital-components/button-question/button-question.vue index 632a3c258..c760274af 100644 --- a/src/digital-components/button-question/button-question.vue +++ b/src/digital-components/button-question/button-question.vue @@ -120,7 +120,7 @@ export default { isRequired: Boolean, isOverflowScrollable: Boolean, isWide: Boolean, - modelValue: [Array, Number, String, Object], + modelValue: [Array, Number, String], value: [Number, String], validationRules: String, suppressError: Boolean, @@ -140,7 +140,7 @@ export default { const fieldOptions = { value: modelValue, - initialValue: modelValue, + initialValue: null, }; const { errorMessage, handleBlur, handleChange, meta, validate, errors, resetField } = @@ -255,10 +255,8 @@ export default { }, }, watch: { - modelValue(newValue) { - this.resetField({ - value: newValue, - }); + modelValue(newValue, oldValue) { + this.resetField(); }, answers() { //once we get the answers to display from parent, see if we need a GA event to log what we showed @@ -295,16 +293,16 @@ export default {