How to use the @woocommerce/e2e-environment.jestConfig.setupFilesAfterEnv function in @woocommerce/e2e-environment

To help you get started, we’ve selected a few @woocommerce/e2e-environment examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Automattic / sensei / tests / e2e / config / jest.config.js View on Github external
const path = require( 'path' );
const { jestConfig: baseE2Econfig } = require( '@woocommerce/e2e-environment' );
const { jestConfig: pptrConfig } = require( '@automattic/puppeteer-utils' );

module.exports = {
	...baseE2Econfig,
	...pptrConfig,

	// Path of your project's E2E tests.
	roots: [ path.resolve( __dirname, '../specs' ) ],

	// A list of paths to modules that run some code to configure or set up the testing framework before each test
	setupFilesAfterEnv: [
		...baseE2Econfig.setupFilesAfterEnv,
		...pptrConfig.setupFilesAfterEnv,
		path.resolve( __dirname, './jest.setup.js' ),
	],
};

@woocommerce/e2e-environment

WooCommerce End to End Testing Environment Configuration.

GPL-3.0-or-later
Latest version published 2 years ago

Package Health Score

69 / 100
Full package analysis

Popular @woocommerce/e2e-environment functions