Skip to content
Prev Previous commit
Next Next commit
Lint
  • Loading branch information
robhogan committed Feb 8, 2023
commit ce8f5f77e458069cb62f12adb45cd7f4be8dd3a1
5 changes: 4 additions & 1 deletion e2e/__tests__/detectOpenHandles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ it('prints message about flag on slow tests', async () => {
});

it('prints message about flag on slow tests with a custom timeout', async () => {
const run = runContinuous('detect-open-handles', ['outside', '--openHandlesTimeout=500']);
const run = runContinuous('detect-open-handles', [
'outside',
'--openHandlesTimeout=500',
]);
await run.waitUntil(({stderr}) =>
stderr.includes('Jest did not exit 0.5 seconds'),
);
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/src/ValidConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ export const initialOptions: Config.InitialOptions = {
noStackTrace: false,
notify: false,
notifyMode: 'failure-change',
openHandlesTimeout: 1000,
onlyChanged: false,
onlyFailures: false,
openHandlesTimeout: 1000,
passWithNoTests: false,
preset: 'react-native',
prettierPath: '<rootDir>/node_modules/prettier',
Expand Down