import { config, shallowMount } from '@vue/test-utils' import Basic from './basic.vue' const localVue = global.localVue config.stubs.nuxt = '' describe('basic.vue', () => { let wrapper let mocks beforeEach(() => { mocks = { $t: jest.fn(), } }) describe('shallow mount', () => { const Wrapper = () => { return shallowMount(Basic, { mocks, localVue, }) } beforeEach(() => { wrapper = Wrapper() }) it('renders', () => { expect(wrapper.is('.layout-blank')).toBe(true) }) }) })