Skip to content

Commit

Permalink
feat: set testTimeout of jest-circus state in command line argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ert78gb committed May 12, 2019
1 parent d36815c commit a8bbaf7
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -16,7 +16,12 @@ import {
buildSnapshotResolver,
} from 'jest-snapshot';
import throat from 'throat';
import {addEventHandler, dispatch, ROOT_DESCRIBE_BLOCK_NAME} from '../state';
import {
addEventHandler,
dispatch,
getState as getRunnerState,
ROOT_DESCRIBE_BLOCK_NAME,
} from '../state';
import {getTestID} from '../utils';
import run from '../run';
import globals from '..';
Expand All @@ -42,6 +47,8 @@ export const initialize = ({
testPath: Config.Path;
parentProcess: Process;
}) => {
if (globalConfig.timeout) getRunnerState().testTimeout = globalConfig.timeout;

const mutex = throat(globalConfig.maxConcurrency);

Object.assign(global, globals);
Expand Down

0 comments on commit a8bbaf7

Please sign in to comment.