diff --git a/tests/__mocks__/react.js b/tests/__mocks__/react.js index dc8f3830c2..f3eb475a12 100644 --- a/tests/__mocks__/react.js +++ b/tests/__mocks__/react.js @@ -15,4 +15,4 @@ if (!React.createRef) { }; } -module.exports = React; +Object.assign(module.exports, React);