Skip to content

Glossary: Testing Web Apps

server.use

Also written: server.resetHandlers, server.listen, server.close, setupServer

MSW calls for controlling the fake server. `server.use` adds a handler for one test ahead of the default, and `resetHandlers` removes such overrides.

Where the book teaches it

Related terms

MSWRequest handler