disable hanging test for now

This commit is contained in:
Scott Lamb 2021-02-18 09:10:43 -08:00
parent f281922359
commit c9cb5f2f01

View File

@ -48,7 +48,12 @@ test("success", async () => {
await waitFor(() => expect(onSuccess).toHaveBeenCalledTimes(1));
});
test("close while pending", async () => {
// TODO: fix and re-enable this test.
// Currently it makes "CI=true npm run test" hang.
// I think the problem is that npmjs doesn't really support aborting requests,
// so the delay("infinite") request just sticks around, even though the fetch
// has been aborted. Maybe https://github.com/mswjs/msw/pull/585 will fix it.
xtest("close while pending", async () => {
const handleClose = jest.fn();
const onSuccess = jest.fn();
const { rerender } = renderWithCtx(