v0.8.2
Features
- Running
start()
andstop()
functions now returns a Promise that corresponds to the Service Worker registration/unregistration status
import { composeMocks, rest } from 'msw'
const { start, stop } = composeMocks(
rest.get(...)
)
start.then(() => {/* Your logic here */})
stop.then(() => {/* Your logic here */})