tubearchivist-frontend/mocks/index.js

10 lines
262 B
JavaScript
Raw Normal View History

2022-10-18 19:28:37 +00:00
const { setupServer } = require("msw/node");
const server = setupServer();
server.listen({ onUnhandledRequest: "bypass" });
console.info("🔶 Mock server running");
process.once("SIGINT", () => server.close());
process.once("SIGTERM", () => server.close());