initial FBS admin
This commit is contained in:
15
src/setupTests.js
Normal file
15
src/setupTests.js
Normal file
@ -0,0 +1,15 @@
|
||||
import {configure} from 'enzyme';
|
||||
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
||||
|
||||
configure({adapter: new Adapter()});
|
||||
|
||||
if (global.document) {
|
||||
document.createRange = () => ({
|
||||
setStart: () => {},
|
||||
setEnd: () => {},
|
||||
commonAncestorContainer: {
|
||||
nodeName: 'BODY',
|
||||
ownerDocument: document,
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user