woocommerce/packages/js/e2e-environment/config/jest-object.config.js

21 lines
423 B
JavaScript
Raw Normal View History

/**
* External Dependencies
*/
const { E2E_RETRY_TIMES } = process.env;
const setupJestRetries = ( retries = 2 ) => {
const retryTimes = E2E_RETRY_TIMES ? E2E_RETRY_TIMES : retries;
jest.retryTimes( retryTimes );
};
2021-12-08 19:03:08 +00:00
// If more methods are added to setupJestObject, it should be include in the readme
const setupJestObject = () => {
setupJestRetries();
};
module.exports = {
setupJestObject,
setupJestRetries,
};