Factory function to create a new MockFetch instance
Optional
Optional initial MSW request handlers
A new MockFetch instance
import { createMockFetch } from '@stratal/testing'const mock = createMockFetch()beforeAll(() => mock.listen())afterEach(() => mock.reset())afterAll(() => mock.close()) Copy
import { createMockFetch } from '@stratal/testing'const mock = createMockFetch()beforeAll(() => mock.listen())afterEach(() => mock.reset())afterAll(() => mock.close())
Factory function to create a new MockFetch instance