fix: call testing lib cleanup afterEach test (#4232)

This commit is contained in:
Joe Previte
2022-09-27 16:27:42 -07:00
committed by GitHub
parent 65ff604969
commit 9775228b00
+2
View File
@@ -1,4 +1,5 @@
import "@testing-library/jest-dom"
import { cleanup } from "@testing-library/react"
import crypto from "crypto"
import * as util from "util"
import { server } from "./src/testHelpers/server"
@@ -22,6 +23,7 @@ beforeAll(() =>
// Reset any request handlers that we may add during the tests,
// so they don't affect other tests.
afterEach(() => {
cleanup()
server.resetHandlers()
jest.clearAllMocks()
})