Utilisation
import Vue from 'vue';
import Component from '../';
import {
Wrapper,
shallowMount,
createLocalVue,
installRouter,
installGlobalPlugins
} from '@cnamts/vue-dot/src/helpers/testUtils';
describe('Component', () => {
const localVue = createLocalVue();
let wrapper: Wrapper<Vue>;
installGlobalPlugins(localVue);
installRouter(localVue);
it('renders correctly', () => {
wrapper = shallowMount(Component, {
localVue
});
expect(wrapper).toMatchSnapshot();
});
});