DEV Community

Discussion on: Announcing "@mswjs/data"—data modeling library for testing JavaScript applications

Collapse
 
pke profile image
Philipp Kursawe

What I still don't get about MSW: Is it supposed for testing or production code?

Collapse
 
kettanaito profile image
Artem Zakharchenko • Edited

Hey, Philipp.
MSW is a development tool. You can use it for testing, prototyping, debugging, anything concerning API, really. You are unlikely to need it in production where you have actual servers. Nothing stops you from shipping it, though, and there are some educational websites that use MSW as a server replacement for simplicity's sake.