tubearchivist-frontend/mocks/index.js
Sean Norwood 2e213376e3
Initial
2022-10-18 14:28:37 -05:00

10 lines
262 B
JavaScript

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());