mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
docs: fix unstub function name in vi function description (#3871)
This commit is contained in:
parent
d1a08c88c0
commit
06ca0b6f66
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user