mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
11 lines
262 B
TypeScript
11 lines
262 B
TypeScript
import fetchMock from "jest-fetch-mock";
|
|
// rewire global.fetch to call 'fetchMock'
|
|
fetchMock.enableMocks();
|
|
|
|
// Mock __non_webpack_require__ for tests
|
|
globalThis.__non_webpack_require__ = jest.fn();
|
|
|
|
process.on("unhandledRejection", (err) => {
|
|
fail(err);
|
|
});
|