Put in order · Vue.js course · Module 9: Composables & VueUse
Mocking a Function in Vitest
Arrange the creation of a mock fetch function:
Items to put in order
- .mockResolvedValue(
- const mockFetch =
- vi.fn()
- { temp: 22 })
You can check the correct answer by solving this task in the CodeWorlds game.