Skip to content

Commit

Permalink
chore(docs): fix vi.mock example
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed May 9, 2023
1 parent 9836ccb commit fde628a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/vi.md
Expand Up @@ -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 }
})

Expand Down

0 comments on commit fde628a

Please sign in to comment.