Click in order · Vue.js course · Module 12: Testing & Deploy

vi.mock syntax

Arrange the syntax for mocking a module:

Items to click

  • './auth',
  • vi.mock(
  • () => ({
  • }))
  • useAuthStore: () => ({ token: 'fake' })

You can check the correct answer by solving this task in the CodeWorlds game.