mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
17 lines
428 B
TypeScript
17 lines
428 B
TypeScript
import "@testing-library/jest-dom";
|
|
|
|
import mockServer from "./mock-server";
|
|
|
|
// Needed for testing react-tooltip-5
|
|
window.CSS.supports = jest.fn();
|
|
global.ResizeObserver = jest.fn().mockImplementation(() => ({
|
|
observe: jest.fn(),
|
|
unobserve: jest.fn(),
|
|
disconnect: jest.fn(),
|
|
}));
|
|
|
|
// Mock server setup
|
|
beforeAll(() => mockServer.listen());
|
|
afterEach(() => mockServer.resetHandlers());
|
|
afterAll(() => mockServer.close());
|