npmjs.com

Test a package

  npm.commands.test(packages, callback)

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.

npm can run tests on multiple packages. Just specify multiple packages in the packages parameter.

Last modified May 20, 2015           Found a typo? Send a pull request!

Getting Started

Using npm

npm Enterprise

CLI Commands

Configuring npm

Using npm programmatically

npm policy documents

View All On One Page