feat: migrate enzyme to edx react-unit-test-utils
This commit is contained in:
committed by
GitHub
parent
1bc4e51c22
commit
dcdaace08d
@@ -1,13 +1,9 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import 'core-js/stable';
|
||||
import 'regenerator-runtime/runtime';
|
||||
import Enzyme from 'enzyme';
|
||||
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
||||
import MutationObserver from '@sheerun/mutationobserver-shim';
|
||||
import { mergeConfig } from '@edx/frontend-platform';
|
||||
|
||||
Enzyme.configure({ adapter: new Adapter() });
|
||||
|
||||
/* need to mock window for tinymce on import, as it is JSDOM incompatible */
|
||||
|
||||
Object.defineProperty(window, 'matchMedia', {
|
||||
|
||||
Reference in New Issue
Block a user