Skip to content

Commit

Permalink
added an interactive argument to the test-e2e script
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Mar 6, 2019
1 parent 7e1c1ed commit 081e522
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/scripts/scripts/test-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const jest = require( 'jest' );
const {
fromConfigRoot,
getCliArgs,
getCliArg,
hasCliArg,
hasProjectFile,
hasJestConfig,
Expand All @@ -42,4 +43,9 @@ const runInBand = ! hasRunInBand ?
[ '--runInBand' ] :
[];

if ( hasCliArg( 'interactive' ) ) {
process.env.PUPPETEER_HEADLESS = false;
process.env.PUPPETEER_SLOWMO = 80;
}

jest.run( [ ...config, ...runInBand, ...getCliArgs() ] );

0 comments on commit 081e522

Please sign in to comment.