NPM-TEST
Section: User Commands (1)
Updated: December 2022
Index
Return to Main Contents
NAME
npm-test
Synopsis
<!-- AUTOGENERATED USAGE DESCRIPTIONS -->
Description
This runs a predefined command specified in the "test" property of
a package's "scripts" object.
Example
-
{
"scripts": {
"test": "node test.js"
}
}
-
npm test
> npm@x.x.x test
> node test.js
(test.js output would be here)
Configuration
<!-- AUTOGENERATED CONFIG DESCRIPTIONS -->
See Also
-
- •
-
npm run-script
- •
-
npm scripts
- •
-
npm start
- •
-
npm restart
- •
-
npm stop
Index
- NAME
-
- Synopsis
-
- Description
-
- Example
-
- Configuration
-
- See Also
-
This document was created by
man2html,
using the manual pages.
Time: 16:34:10 GMT, April 27, 2024