Skip to content

Commit

Permalink
Increase Jest timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-davies committed Nov 2, 2023
1 parent 0fa5ed4 commit 7d6e862
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/datagateway-common/src/setupTests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import thunk from 'redux-thunk';
import configureStore from 'redux-mock-store';
import { createMemoryHistory, History } from 'history';

jest.setTimeout(15000);
jest.setTimeout(20000);

if (typeof window.URL.createObjectURL === 'undefined') {
// required as work-around for enzyme/jest environment not implementing window.URL.createObjectURL method
Expand Down
2 changes: 1 addition & 1 deletion packages/datagateway-dataview/src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { initialState as dgDataViewInitialState } from './state/reducers/dgdatav
import { dGCommonInitialState } from 'datagateway-common';
import { screen, within } from '@testing-library/react';

jest.setTimeout(15000);
jest.setTimeout(20000);

function noOp(): void {
// required as work-around for enzyme/jest environment not implementing window.URL.createObjectURL method
Expand Down
2 changes: 1 addition & 1 deletion packages/datagateway-download/src/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-empty-function */
import '@testing-library/jest-dom';

jest.setTimeout(15000);
jest.setTimeout(20000);

function noOp(): void {
// required as work-around for enzyme/jest environment not implementing window.URL.createObjectURL method
Expand Down
2 changes: 1 addition & 1 deletion packages/datagateway-search/src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { dGCommonInitialState } from 'datagateway-common';
import { initialState as dgSearchInitialState } from './state/reducers/dgsearch.reducer';
import { screen, within } from '@testing-library/react';

jest.setTimeout(15000);
jest.setTimeout(20000);

// Unofficial React 17 Enzyme adapter
Enzyme.configure({ adapter: new Adapter() });
Expand Down

0 comments on commit 7d6e862

Please sign in to comment.