import {test, describe, expect, vi } from 'vitest' import { mount} from '@vue/test-utils' import VTabulator from '@molecules/Tabulator/VTabulator.vue'; describe("tests VTabulator component", () => { vi.mock('tabulator-tables', () => { const tabulator = vi.fn(() => { return { getHtml: () => { return '
test
' } } }) return { __esModule: true, TabulatorFull: tabulator } }) test('exist test of VTabulator', async () => { const wrapper = mount(VTabulator, { shallow: true, }) expect(wrapper.exists()).toBe(true) }) })