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 Feb 26, 2019
1 parent f8912c2 commit a7acd0a
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 a7acd0a

Please sign in to comment.