Skip to content

Commit

Permalink
Remove redundant puppeteer download.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Oct 19, 2021
1 parent 6c5cf4f commit 8ad655b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/visual-regression/run-tests.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
const dotenv = require( 'dotenv' );
const dotenv_expand = require( 'dotenv-expand' );
const { sync: spawn } = require( 'cross-spawn' );
const { execSync } = require( 'child_process' );

// WP_BASE_URL interpolates LOCAL_PORT, so needs to be parsed by dotenv_expand().
dotenv_expand( dotenv.config() );

const result = spawn( 'node', [ require.resolve( 'puppeteer/install' ) ], {
stdio: 'inherit',
} );
if ( result.status > 0 ) {
process.exit( result.status );
}

// Run the tests, passing additional arguments through to the test script.
execSync(
'wp-scripts test-e2e --config tests/visual-regression/jest.config.js ' +
Expand Down

0 comments on commit 8ad655b

Please sign in to comment.