Configuring setup.js inside jest.config.js doesn't solve the error
setup.js
import Vue from "vue";
import Vuetify from "vuetify";
Vue.config.productionTip = false;
Vue.use(Vuetify);
jest.config.js
module.exports = {
preset: "@vue/cli-plugin-unit-jest",
setupFiles: ["./tests/unit/setup.js"],
};
Error Occuring:
[Vue warn]: Unknown custom element:
<v-app-bar>
- did you register the component correctly? For recursive components, make sure to provide the "name" option[Vue warn]: Unknown custom element:
<v-row>
- did you register the component correctly? For recursive components, make sure to provide the "name" option[Vue warn]: Unknown custom element:
<v-col>
- did you register the component correctly? For recursive components, make sure to provide the "name" option