Lesson:Vitest Browser Mode mocking and spyOn

In normal Vitest tests it is very common to use vi.spyOn(...) and vi.mock(...).

For that, we have lessons:

You can use these on Vitest Browser Mode, but there are some slight differences to be aware of, which we will cover in this lesson.

Loading full lesson...

Share this lessonTweet (X) it

Invite a teammate to learn with you by sharing this lesson or dropping the link in your team chat.