3 <title>npm-test</title>
4 <meta http-equiv="content-type" value="text/html;utf-8">
5 <link rel="stylesheet" type="text/css" href="../../static/style.css">
9 <h1><a href="../cli/npm-test.html">npm-test</a></h1> <p>Test a package</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code> npm test <name>
14 npm tst <name></code></pre>
16 <h2 id="DESCRIPTION">DESCRIPTION</h2>
18 <p>This runs a package's "test" script, if one was provided.</p>
20 <p>To run tests as a condition of installation, set the <code>npat</code> config to
23 <h2 id="SEE-ALSO">SEE ALSO</h2>
25 <ul><li><a href="../cli/npm-run-script.html">npm-run-script(1)</a></li><li><a href="../misc/npm-scripts.html">npm-scripts(7)</a></li><li><a href="../cli/npm-start.html">npm-start(1)</a></li><li><a href="../cli/npm-restart.html">npm-restart(1)</a></li><li><a href="../cli/npm-stop.html">npm-stop(1)</a></li></ul>
27 <p id="footer">npm-test — npm@1.3.19</p>
30 var wrapper = document.getElementById("wrapper")
31 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
32 .filter(function (el) {
33 return el.parentNode === wrapper
34 && el.tagName.match(/H[1-6]/)
38 , toc = document.createElement("ul")
39 toc.innerHTML = els.map(function (el) {
40 var i = el.tagName.charAt(1)
50 out += "<li><a href='#" + el.id + "'>" +
51 ( el.innerText || el.text || el.innerHTML)
56 document.body.appendChild(toc)