fix test with createSpy implementation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { createTaskFixture } from '@/use-cases/task/models/task.fixture'
|
||||
import type { TaskStoreState } from '@/use-cases/task/stores/useTask.store'
|
||||
import { createTestingPinia } from '@pinia/testing'
|
||||
import { vi } from 'vitest'
|
||||
|
||||
export interface InitialState {
|
||||
'task-store': TaskStoreState
|
||||
@@ -14,8 +15,11 @@ export const withStore = (partialState?: TaskStoreState) => ({
|
||||
global: {
|
||||
plugins: [
|
||||
createTestingPinia({
|
||||
createSpy: vi.fn,
|
||||
initialState: {
|
||||
...partialState,
|
||||
initialState
|
||||
...initialState
|
||||
}
|
||||
})
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user