2019-07-23 13:08:36 +00:00
|
|
|
/**
|
2020-01-16 17:43:12 +00:00
|
|
|
* External dependencies
|
2019-07-23 13:08:36 +00:00
|
|
|
*/
|
2020-01-16 17:43:12 +00:00
|
|
|
const { jestConfig } = require( 'puppeteer-utils' );
|
|
|
|
const modifiedConfig = jestConfig;
|
|
|
|
const afterEnvSetup = modifiedConfig.setupFilesAfterEnv;
|
2019-07-23 13:08:36 +00:00
|
|
|
|
2020-01-16 17:43:12 +00:00
|
|
|
afterEnvSetup.push( '<rootDir>/tests/e2e-tests/config/jest.setup.js');
|
|
|
|
modifiedConfig.setupFilesAfterEnv = afterEnvSetup;
|
2019-07-23 13:08:36 +00:00
|
|
|
|
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';
|
2019-07-23 13:08:36 +00:00
|
|
|
|
2020-01-16 17:43:12 +00:00
|
|
|
module.exports = modifiedConfig;
|