mirror of https://github.com/nodejs/node.git
11 lines
501 B
HTML
11 lines
501 B
HTML
|
<h1><a href="../api/npm-test.html">npm-test</a></h1> <p>Test a package</p>
|
||
|
<h2 id="synopsis">SYNOPSIS</h2>
|
||
|
<pre><code> npm.commands.test(packages, callback)
|
||
|
</code></pre><h2 id="description">DESCRIPTION</h2>
|
||
|
<p>This runs a package's "test" script, if one was provided.</p>
|
||
|
<p>To run tests as a condition of installation, set the <code>npat</code> config to
|
||
|
true.</p>
|
||
|
<p>npm can run tests on multiple packages. Just specify multiple packages
|
||
|
in the <code>packages</code> parameter.</p>
|
||
|
|