pleroma/app/soapbox/jest/test-setup.ts
Justin 9a099b3fa7 Add "react-testing-library"
This commit also removes our older testing libraries like Enzyme and React Test Renderer.
2022-04-04 11:51:32 -04:00

10 lines
236 B
TypeScript

'use strict';
import { __clear as clearApiMocks } from '../__mocks__/api';
// API mocking
jest.mock('soapbox/api');
afterEach(() => clearApiMocks());
// Mock external dependencies
jest.mock('uuid', () => ({ v4: jest.fn(() => 1) }));