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.

Check what stuck

Get 2 of 3 right to finish the lesson.
0 / 3