Created
March 19, 2021 16:37
-
-
Save tidusia/bb6b3c5fb78d9f07a36878c1c7ff103d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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