From 87232420ebe0d5b6052529c0043ae4981590caf1 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Mon, 23 Sep 2024 21:23:37 +0200 Subject: [PATCH] docs: clarify --- docs/api/vi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/vi.md b/docs/api/vi.md index 5a967e62d11c..3fd35edd5fa1 100644 --- a/docs/api/vi.md +++ b/docs/api/vi.md @@ -435,7 +435,7 @@ console.log(cart.getApples()) // still 42! ::: ::: tip -It is not possible to spy on a specific exported method in [Browser Mode](/guide/browser/). Instead, you can spy on every exported method by calling `vi.mock("./file-path.js", { spy: true })`. This will mock every export but keep its implementation intact, allowing you to assert if the method was called correctly. +It is not possible to spy on exported methonds in [Browser Mode](/guide/browser/). Instead, you can spy on every exported method by calling `vi.mock("./file-path.js", { spy: true })`. This will mock every export but keep its implementation intact, allowing you to assert if the method was called correctly. ```ts import { calculator } from './src/calculator.ts'