1import { mount, createLocalVue } from '@vue/test-utils'; 2import InfoTooltip from '@/components/Global/InfoTooltip'; 3import { BootstrapVue } from 'bootstrap-vue'; 4 5process.env.BOOTSTRAP_VUE_NO_WARN = true; 6const localVue = createLocalVue(); 7localVue.use(BootstrapVue); 8 9describe('InfoTooltip.vue', () => { 10 const wrapper = mount(InfoTooltip, { 11 localVue, 12 propsData: { 13 title: 'A tooltip test title', 14 }, 15 mocks: { 16 $t: (key) => key, 17 }, 18 }); 19 it('should exist', () => { 20 expect(wrapper.exists()).toBe(true); 21 }); 22 it('should render correctly', () => { 23 expect(wrapper.element).toMatchSnapshot(); 24 }); 25}); 26