spec: Mock fetch on global
refs COREFE-214 Test Plan: - Specs pass flag = none Change-Id: I6c7cbcb6fdc6771e56ff78b37a532948c19610c6 Reviewed-on: https://gerrit.instructure.com/205825 Tested-by: Jenkins Reviewed-by: Ryan Shaw <ryan@instructure.com> QA-Review: Ryan Shaw <ryan@instructure.com> Product-Review: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
parent
aaa4f01c0c
commit
d2c7180e12
|
@ -21,7 +21,7 @@ import Adapter from 'enzyme-adapter-react-16'
|
||||||
|
|
||||||
const errorsToIgnore = ["Warning: [Focusable] Exactly one tabbable child is required (0 found)."];
|
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 */
|
/* eslint-disable-next-line */
|
||||||
const _consoleDotError = console.error
|
const _consoleDotError = console.error
|
||||||
|
|
Loading…
Reference in New Issue