SysTutorials

Linux Manual Pages › Section 3

npm-test(3)

npm-test — Test a package

Synopsis

 npm.commands.test(packages, callback)

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. npm can run tests on multiple packages. Just specify multiple packages in the packages parameter.