From 8ad655b9cce41ac4b33bf7612f41311445bcedf8 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Thu, 1 Apr 2021 17:39:01 +1100 Subject: [PATCH] Remove redundant puppeteer download. --- tests/visual-regression/run-tests.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/visual-regression/run-tests.js b/tests/visual-regression/run-tests.js index 99ec86687d631..c5f1169434f05 100644 --- a/tests/visual-regression/run-tests.js +++ b/tests/visual-regression/run-tests.js @@ -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 ' +