mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
8 lines
248 B
TypeScript
8 lines
248 B
TypeScript
import actualCreate from '@vitest/test-fn'
|
|
import { vi } from 'vitest'
|
|
|
|
// when creating a store, we get its initial state, create a reset function and add it in the set
|
|
export default vi.fn((createState) => {
|
|
return actualCreate(createState)
|
|
})
|