bigbuffet-rw/app/soapbox/test_setup.js
2020-06-09 17:16:22 -05:00

11 lines
271 B
JavaScript

'use strict';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { __clear as clearApiMocks } from 'soapbox/api';
const adapter = new Adapter();
configure({ adapter });
jest.mock('soapbox/api');
afterEach(() => clearApiMocks());