Skip to content
Testing · Lesson 03 of 07 · Builds on Testing props, emits and slots

Testing async code and mocks

Run a composable inside withSetup(), replace the network with vi.mock() or MSW, wait with flushPromises(), and move time on with fake timers.