21 lines
340 B
JavaScript
21 lines
340 B
JavaScript
/**
|
|
* External Dependencies
|
|
*/
|
|
const { E2E_RETRY_TIMES } = process.env;
|
|
|
|
const setupJestRetries = ( retries = 2 ) => {
|
|
const retryTimes = E2E_RETRY_TIMES ? E2E_RETRY_TIMES : retries;
|
|
|
|
jest.retryTimes( retryTimes );
|
|
};
|
|
|
|
const setupJestObject = () => {
|
|
setupJestRetries();
|
|
};
|
|
|
|
module.exports = {
|
|
setupJestObject,
|
|
setupJestRetries,
|
|
};
|
|
|