mirror of
https://github.com/prymitive/karma
synced 2026-05-13 03:56:59 +00:00
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
7 lines
220 B
JavaScript
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;
|
|
}
|