Skip to content
Snippets Groups Projects
Commit a6a5c7a3 authored by Chris Beer's avatar Chris Beer
Browse files

Increase the default timeout to make travis builds less flaky

parent 6a3d0416
Branches
No related tags found
No related merge requests found
// Setup Jest to mock fetch
import { JSDOM } from 'jsdom'; // eslint-disable-line import/no-extraneous-dependencies
......@@ -8,6 +9,8 @@ import Adapter from 'enzyme-adapter-react-16'; // eslint-disable-line import/no-
const jsdom = new JSDOM('<!doctype html><html><body><div id="main"></div></body></html>');
const { window } = jsdom;
jest.setTimeout(10000);
window.HTMLCanvasElement.prototype.getContext = () => {};
jest.setMock('node-fetch', fetch);
global.fetch = require('jest-fetch-mock'); // eslint-disable-line import/no-extraneous-dependencies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment