tests/performance/run.js
/**
 * Start the performance tests on Chrome.
 * Set `currentBrowser` to chrome.
 */
Start the performance tests on Chrome.
Set `currentBrowser` to chrome.
Start the performance tests on Chrome . Set ` currentBrowser ` to chrome .
async function startPerfhomepageOnChrome(homePage) {
  if (currentBrowser !== undefined) {
    currentBrowser.kill();
  }
  if (CHROME_CMD === undefined || CHROME_CMD === null) {
    console.error("Error: Starting browser before initialization");
    return process.exit(1);
  }
  const spawned = spawnProc(CHROME_CMD, [
    ...CHROME_OPTIONS,
    `http://localhost:${PERF_TESTS_PORT}/${homePage}`
  ]);
  currentBrowser = spawned.child;
}
async function startPerfhomepageOnChrome ( homePage ) { if ( currentBrowser !== undefined ) { currentBrowser . kill ( ) ; } if ( CHROME_CMD === undefined || CHROME_CMD === null ) { console . error ( "Error: Starting browser before initialization" ) ; return process . exit ( 1 ) ; } const spawned = spawnProc ( CHROME_CMD , [ ... CHROME_OPTIONS , ` ${ PERF_TESTS_PORT } ${ homePage } ` ] ) ; currentBrowser = spawned . child ; }
Start the performance tests on Chrome.
Start the performance tests on Chrome .
// eslint-disable-next-line no-console