Skip to content

Commit

Permalink
rename to unit-test, phetsims/perennial#404
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 26, 2024
1 parent f129b74 commit 367cd7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/common/pre-commit-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const repo = getArg( 'repo' );
process.exit( success ? 0 : 1 );
}

else if ( command === 'test' ) {
else if ( command === 'unit-test' ) {

// Run qunit tests if puppeteerQUnit exists in the checked-out SHAs and a test HTML exists.
const qUnitOK = await ( async () => {
Expand Down
4 changes: 2 additions & 2 deletions js/grunt/tasks/pre-commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* --lint: runs eslint on the repo
* --report-media: checks for missing or unused media files
* --check: runs check.js
* --test: runs qunit tests // TODO: rename test to unit-test, see https://github.com/phetsims/perennial/issues/404
* --unit-test: runs qunit tests
* --phet-io-api: compares the PhET-iO API with the previous version
*
* See also phet-info/git-template-dir/hooks/pre-commit for how this is used in precommit hooks.
Expand Down Expand Up @@ -78,7 +78,7 @@ const outputToConsole = getOption( 'console' ); // Console logging via --console
process.exit( 0 );
}

const possibleTasks = [ 'lint', 'report-media', 'check', 'test', 'phet-io-api' ];
const possibleTasks = [ 'lint', 'report-media', 'check', 'unit-test', 'phet-io-api' ];

// By default, run all tasks
let tasksToRun = [ ...possibleTasks ];
Expand Down

0 comments on commit 367cd7c

Please sign in to comment.