W3cubDocs

/npm

npm-test

Test a package.

Synopsis

  npm test [-- <args>]
  npm tst [-- <args>]

Description

This runs a package's "test" script, if one was provided.

To run tests as a condition of installation, set the npat config to true.

See Also

© npm, Inc. and Contributors
Licensed under the npm License.
npm is a trademark of npm, Inc.
https://docs.npmjs.com/cli/test