switch to remix

This commit is contained in:
jane 2022-03-22 13:42:07 -04:00
commit 52a0ba1b3b
77 changed files with 13468 additions and 0 deletions

7
mocks/README.md Normal file
View file

@ -0,0 +1,7 @@
# Mocks
Use this to mock any third party HTTP resources that you don't have running locally and want to have mocked for local development as well as tests.
Learn more about how to use this at [mswjs.io](https://mswjs.io/)
For an extensive example, see the [source code for kentcdodds.com](https://github.com/kentcdodds/kentcdodds.com/blob/main/mocks/start.ts)

2
mocks/index.js Normal file
View file

@ -0,0 +1,2 @@
require("esbuild-register/dist/node").register();
require("./start");

9
mocks/start.ts Normal file
View file

@ -0,0 +1,9 @@
import { setupServer } from "msw/node";
const server = setupServer();
server.listen({ onUnhandledRequest: "warn" });
console.info("🔶 Mock server running");
process.once("SIGINT", () => server.close());
process.once("SIGTERM", () => server.close());