import { config, mount } from '@vue/test-utils' import GroupForm from './GroupForm.vue' const localVue = global.localVue config.stubs['nuxt-link'] = '' const propsData = { update: false, group: {}, } describe('GroupForm', () => { let wrapper let mocks beforeEach(() => { mocks = { $t: jest.fn(), $env: { CATEGORIES_ACTIVE: true, }, } }) describe('mount', () => { const Wrapper = () => { return mount(GroupForm, { propsData, mocks, localVue }) } beforeEach(() => { wrapper = Wrapper() }) it('renders', () => { expect(wrapper.findAll('.group-form')).toHaveLength(1) }) }) })