13d356691b
- Move the functionality for controlling `local-env` out of `package.json`, into JS scripts. - Merge the `docker-compose` config files, and move it to the root directory. This allows `docker-compose.override.yml` to work for local overrides. - Fix nginx redirecting to port 80 under some circumstances. - `npm run env:install` now creates `wp-tests.config.php` for you. - Cleaned up a bunch of cruft in `.travis.yml`. See #47767. git-svn-id: https://develop.svn.wordpress.org/trunk@45783 602fd350-edb4-49c9-b593-d223f7449a82
10 lines
458 B
JavaScript
10 lines
458 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' } );
|