woocommerce/tests/e2e-tests/config/jest.config.js

15 lines
522 B
JavaScript
Raw Normal View History

/**
2020-01-16 17:43:12 +00:00
* External dependencies
*/
2020-01-16 17:43:12 +00:00
const { jestConfig } = require( 'puppeteer-utils' );
const modifiedConfig = jestConfig;
const afterEnvSetup = modifiedConfig.setupFilesAfterEnv;
2020-01-16 17:43:12 +00:00
afterEnvSetup.push( '<rootDir>/tests/e2e-tests/config/jest.setup.js');
modifiedConfig.setupFilesAfterEnv = afterEnvSetup;
2020-01-16 17:43:12 +00:00
// Sort test path alphabetically. This is needed so that `activate-and-setup` tests run first
modifiedConfig.testSequencer = '<rootDir>/tests/e2e-tests/config/jest-custom-sequencer.js';
2020-01-16 17:43:12 +00:00
module.exports = modifiedConfig;