<h1><ahref="../cli/npm-test.html">npm-test</a></h1><p>Test a package</p><h2id="synopsis">SYNOPSIS</h2><pre><code> npm test [-- <args>] npm tst [-- <args>]</code></pre><h2id="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 totrue.</p><h2id="see-also">SEE ALSO</h2><ul><li><ahref="../cli/npm-run-script.html">npm-run-script(1)</a></li><li><ahref="../misc/npm-scripts.html">npm-scripts(7)</a></li><li><ahref="../cli/npm-start.html">npm-start(1)</a></li><li><ahref="../cli/npm-restart.html">npm-restart(1)</a></li><li><ahref="../cli/npm-stop.html">npm-stop(1)</a></li></ul>