Skip to content

Commit

Permalink
docs: fix unstub function name in vi function description (#3871)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru authored Aug 3, 2023
1 parent d1a08c8 commit 06ca0b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/integrations/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ interface VitestUtils {
/**
* Makes value available on global namespace.
* Useful, if you want to have global variables available, like `IntersectionObserver`.
* You can return it back to original value with `vi.unstubGlobals`, or by enabling `unstubGlobals` config option.
* You can return it back to original value with `vi.unstubAllGlobals`, or by enabling `unstubGlobals` config option.
*/
stubGlobal(name: string | symbol | number, value: unknown): this

/**
* Changes the value of `import.meta.env` and `process.env`.
* You can return it back to original value with `vi.unstubEnvs`, or by enabling `unstubEnvs` config option.
* You can return it back to original value with `vi.unstubAllEnvs`, or by enabling `unstubEnvs` config option.
*/
stubEnv(name: string, value: string): this

Expand Down

0 comments on commit 06ca0b6

Please sign in to comment.