mirror of
git://develop.git.wordpress.org/
synced 2025-02-21 15:15:14 +01:00
This was added in [48177] to fix an issue where Puppeteer was not being installed correctly as a dependency of `@wordpress/wp-scripts`. This has been fixed, so this explicit dependency can be removed. Props isabel_brison, desrosj, SergeyBiryukov. Fixes #52843. git-svn-id: https://develop.svn.wordpress.org/trunk@50612 602fd350-edb4-49c9-b593-d223f7449a82
14 lines
462 B
JavaScript
14 lines
462 B
JavaScript
const dotenv = require( 'dotenv' );
|
|
const dotenv_expand = require( 'dotenv-expand' );
|
|
const { execSync } = require( 'child_process' );
|
|
|
|
// WP_BASE_URL interpolates LOCAL_PORT, so needs to be parsed by dotenv_expand().
|
|
dotenv_expand( dotenv.config() );
|
|
|
|
// Run the tests, passing additional arguments through to the test script.
|
|
execSync(
|
|
'wp-scripts test-e2e --config tests/e2e/jest.config.js ' +
|
|
process.argv.slice( 2 ).join( ' ' ),
|
|
{ stdio: 'inherit' }
|
|
);
|