diff --git a/js/scripts/hook-pre-commit-task.ts b/js/scripts/hook-pre-commit-task.ts index e2188e3c..175b6ea9 100644 --- a/js/scripts/hook-pre-commit-task.ts +++ b/js/scripts/hook-pre-commit-task.ts @@ -89,7 +89,7 @@ const repo = getArg( 'repo' ); process.exit( success ? 0 : 1 ); } - else if ( command === 'qunit' ) { + else if ( command === 'test' ) { // Run qunit tests if puppeteerQUnit exists in the checked-out SHAs and a test HTML exists. const qUnitOK = await ( async () => { diff --git a/js/scripts/hook-pre-commit.js b/js/scripts/hook-pre-commit.js index 1c95107e..aa3faba8 100644 --- a/js/scripts/hook-pre-commit.js +++ b/js/scripts/hook-pre-commit.js @@ -51,7 +51,7 @@ const force = commandLineArguments.includes( '--force' ); } // By default, run all tasks - const tasksToRun = [ 'lint', 'report-media', 'check', 'qunit', 'phet-io-api-compare' ]; + const tasksToRun = [ 'lint', 'report-media', 'check', 'test', 'phet-io-api-compare' ]; const OPT_OUT_ALL = '*'; // Key to opt out of all tasks // check local preferences for overrides for which tasks to turn 'off'