bigbuffet-rw/app/soapbox/test_setup.js
2022-03-16 13:55:18 -05:00

16 lines
366 B
JavaScript

'use strict';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { server } from 'soapbox/msw';
// Enzyme
const adapter = new Adapter();
configure({ adapter });
// Setup MSW
// https://mswjs.io/docs/api/setup-server
beforeAll(() => server.listen());
afterEach(() => server.resetHandlers());
afterAll(() => server.close());