Skip to content

Instantly share code, notes, and snippets.

@harada-shota
Created November 30, 2021 00:58
Show Gist options
  • Save harada-shota/b27ffcc762d09965c7692270cb7547de to your computer and use it in GitHub Desktop.
Save harada-shota/b27ffcc762d09965c7692270cb7547de to your computer and use it in GitHub Desktop.
import { server } from "../../../.mocks/server";
beforeAll(() => server.listen());
afterEach(() => server.resetHandlers());
afterAll(() => server.close());
describe("Testing with MSW", async () => {
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment