mirror of
https://github.com/vitest-dev/vitest.git
synced 2026-02-01 17:36:51 +00:00
chore(docs): fix vi.mock example
This commit is contained in:
parent
9836ccb48c
commit
fde628ad3d
@ -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 }
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user