chore(docs): fix vi.mock example

This commit is contained in:
Vladimir Sheremet 2023-05-09 15:49:35 +02:00
parent 9836ccb48c
commit fde628ad3d

View File

@ -149,7 +149,7 @@ import { vi } from 'vitest'
return { mockedMethod: vi.fn() }
})
vi.mocked('./path/to/module.js', () => {
vi.mock('./path/to/module.js', () => {
return { originalMethod: mockedMethod }
})