I have a simple webapp created to practice my testing skills in vue using Vue Test Utils and Jest but come up with an error regarding with Vue. I'm just console logging to see if my AddDialog is in my Home file but have an error: This is my error:
TypeError: Cannot read property '_modulesNamespaceMap' of undefined
Here is my testing code.
// Imports
import Home from '@/components/Home'
// Utilities
import {createLocalVue, mount, } from '@vue/test-utils'
import Vue from 'vue'
import Vuetify from 'vuetify'
import AddDialog from "@/components/AddDialog";
Vue.use(Vuetify)
describe('Home.vue', () => {
const localVue = createLocalVue()
let vuetify
beforeEach(() => {
vuetify = new Vuetify()
})
test('creates a todo', async () => {
const wrapper = mount(Home)
console.log(wrapper)
})
})