2019-07-23 13:08:36 +00:00
|
|
|
/** format */
|
|
|
|
|
2019-08-27 12:22:24 +00:00
|
|
|
//Set the default test timeout to 30s
|
|
|
|
let jestTimeoutInMilliSeconds = 30000;
|
|
|
|
|
|
|
|
// When running test in the Development mode, the test timeout is increased to 2 minutes which allows for errors to be inspected.
|
|
|
|
// Use `await jestPuppeteer.debug()` in test code to pause execution.
|
|
|
|
if ( process.env.JEST_PUPPETEER_CONFIG === 'tests/e2e-tests/config/jest-puppeteer.dev.config.js' ) {
|
|
|
|
jestTimeoutInMilliSeconds = 120000;
|
|
|
|
}
|
|
|
|
|
2019-07-23 13:08:36 +00:00
|
|
|
jest.setTimeout( jestTimeoutInMilliSeconds );
|