DOKK / manpages / debian 12 / npm / npm-test.1.en
NPM-TEST(1) General Commands Manual NPM-TEST(1)

npm-test

<!-- AUTOGENERATED USAGE DESCRIPTIONS -->

This runs a predefined command specified in the &quot;test&quot; property of
a package's &quot;scripts&quot; object.

{

"scripts": {
"test": "node test.js"
} }
npm test
> npm@x.x.x test
> node test.js
(test.js output would be here)

<!-- AUTOGENERATED CONFIG DESCRIPTIONS -->

  • npm run-script
  • npm scripts
  • npm start
  • npm restart
  • npm stop

December 2022 9.2.0