From 06ca0b6f664466d977f6874761e4c67c1d7f441d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=8F=E3=83=B3=20/=20Han?= <16288797+hannoeru@users.noreply.github.com> Date: Thu, 3 Aug 2023 15:45:11 +0800 Subject: [PATCH] docs: fix unstub function name in vi function description (#3871) --- packages/vitest/src/integrations/vi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vitest/src/integrations/vi.ts b/packages/vitest/src/integrations/vi.ts index a93cab706786..5b5114cada71 100644 --- a/packages/vitest/src/integrations/vi.ts +++ b/packages/vitest/src/integrations/vi.ts @@ -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