Skip to content

Commit

Permalink
test: Increase waitFor timeout for React Testing Library (#14789)
Browse files Browse the repository at this point in the history
Co-authored-by: William Thorenfeldt <[email protected]>
  • Loading branch information
TomasEng and wrt95 authored Feb 24, 2025
1 parent 83cc076 commit ae7e0c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/testing/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { SignalR } from './mocks/signalr';
import type { KeyValuePairs } from 'app-shared/types/KeyValuePairs';
import { app, org } from './testids';
import type { WithTranslationProps } from 'react-i18next';
import { configure } from '@testing-library/dom';

failOnConsole({
shouldFailOnWarn: true,
Expand Down Expand Up @@ -94,3 +95,7 @@ jest.mock('react-router-dom', () => ({
}));

jest.setTimeout(3000000);

const TESTING_LIBRARY_TIMEOUT_MILLISECONDS = 2000;

configure({ asyncUtilTimeout: TESTING_LIBRARY_TIMEOUT_MILLISECONDS });

0 comments on commit ae7e0c0

Please sign in to comment.