Skip to content

Commit

Permalink
unit tests to run only in phet-io brand, #174
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 20, 2020
1 parent bbe460d commit ca466d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/scripts/hook-pre-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ try {
if ( exists ) {
const browser = await puppeteer.launch();

// phet-io repo unit tests must be run with brand=phet-io
const queryString = repo === 'phet-io' ? '&brand=phet-io' : '';

const localTestingURL = buildLocal.localTestingURL.endsWith( '/' ) ? buildLocal.localTestingURL : `${buildLocal.localTestingURL}/`;
const result = await puppeteerQUnit( browser, `${localTestingURL}${testFilePath}?ea${queryString}` );
const result = await puppeteerQUnit( browser, `${localTestingURL}${testFilePath}?ea&brand=phet-io` );
await browser.close();
outputToConsole && console.log( `${repo}: ${JSON.stringify( result, null, 2 )}` );
if ( !result.ok ) {
Expand Down

0 comments on commit ca466d8

Please sign in to comment.