1
1
import { faker } from '@faker-js/faker'
2
2
import { test , expect , describe , beforeAll , afterEach } from 'vitest'
3
- import { mount } from '@vue/test-utils'
4
3
import { setActivePinia , createPinia } from 'pinia'
5
4
6
- import type { VueWrapper , ComponentMountingOptions } from '@vue/test-utils'
7
-
8
5
import ViewTable from '@index-san/core/entities/view-table'
9
6
import Collection from '@index-san/core/entities/collection'
10
7
import ItemFactory from '@index-san/core/__tests__/factories/item'
@@ -25,7 +22,6 @@ import { useViewStore } from '@modules/view/store'
25
22
import { useApp } from '__tests__/fixtures/app'
26
23
import Workspace from '@index-san/core/entities/workspace'
27
24
import { waitFor } from '@composables/utils'
28
- import pinia from '@plugins/pinia'
29
25
import { useMountWrapper } from '__tests__/fixtures/component'
30
26
31
27
describe ( 'CTable.vue' , ( ) => {
@@ -143,7 +139,7 @@ describe('CTable.vue', () => {
143
139
test ( 'should show c-actions by default' , async ( ) => {
144
140
const collection = await createCollection ( )
145
141
146
- const wrapper = component . mount ( {
142
+ component . mount ( {
147
143
props : {
148
144
collectionId : collection . id ,
149
145
} ,
@@ -222,7 +218,7 @@ describe('CTable.vue', () => {
222
218
} ) ) ,
223
219
} )
224
220
225
- const wrapper = component . mount ( {
221
+ component . mount ( {
226
222
props : {
227
223
collectionId : collection . id ,
228
224
viewId : view . id ,
0 commit comments