From 4f07b48c2e1dc5b193b2ddbf00c327772ff9350c Mon Sep 17 00:00:00 2001 From: mgabor <9047995+mgabor3141@users.noreply.github.com> Date: Sat, 19 Oct 2024 09:41:24 +0200 Subject: [PATCH] Fix typo --- 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 0da4bd29693e..14461ed79548 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 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. +It is not possible to spy on exported methods 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'