mirror of
https://github.com/nodejs/node.git
synced 2025-05-13 12:41:50 +00:00

PR-URL: https://github.com/nodejs/node/pull/36953 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
614 B
614 B
title | section | description |
---|---|---|
npm-test | 1 | Test a package |
Synopsis
npm test [-- <args>]
aliases: t, tst
Description
This runs a predefined command specified in the "test"
property of
a package's "scripts"
object.
Example
{
"scripts": {
"test": "node test.js"
}
}
npm test
> npm@x.x.x test
> node test.js
(test.js output would be here)