Skip to content

Instantly share code, notes, and snippets.

@tidusia
Created March 19, 2021 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tidusia/bb6b3c5fb78d9f07a36878c1c7ff103d to your computer and use it in GitHub Desktop.
Save tidusia/bb6b3c5fb78d9f07a36878c1c7ff103d to your computer and use it in GitHub Desktop.
const server = setupServer(
rest.get("/jobs", (req, res, ctx) => res(ctx.json(fixtures.jobs))),
);
beforeAll(() => server.listen({ onUnhandledRequest: "error" }));
afterAll(() => server.close());
afterEach(() => server.resetHandlers());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment