diff --git a/jest/jest-setup.js b/jest/jest-setup.js index e7b326940f8..ab732b0e781 100644 --- a/jest/jest-setup.js +++ b/jest/jest-setup.js @@ -21,7 +21,7 @@ import Adapter from 'enzyme-adapter-react-16' const errorsToIgnore = ["Warning: [Focusable] Exactly one tabbable child is required (0 found)."]; -window.fetch = require('jest-fetch-mock') +global.fetch = require('jest-fetch-mock') /* eslint-disable-next-line */ const _consoleDotError = console.error