Files
karma/ui/src/__mocks__/react-onclickoutside.js
Łukasz Mierzwa 96b775dcb1 fix(tests): move node mocks to the ui folder
react-scripts 3.1.x fails while running all tests, this was caused by mocks being no longer loaded properly.
Looks like jsconfig.json options are now enforced and since ui/src is the root of the projects mock files
need to move there
2019-08-14 14:50:09 +01:00

7 lines
220 B
JavaScript

// mock react-onclickoutside so we bypass it due to:
// TypeError: Cannot read property 'isReactComponent' of undefined
export default function onClickOutsideHOC(WrappedComponent, config) {
return WrappedComponent;
}