nodejs/deps/npm/man/man1/npm-test.1

52 lines
629 B
Groff
Raw Normal View History

.TH "NPM\-TEST" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-test\fR \- Test a package
.SS Synopsis
2014-09-24 14:41:07 -07:00
.P
.RS 2
2014-11-04 15:08:12 -08:00
.nf
npm test [\-\- <args>]
aliases: t, tst
2014-11-04 15:08:12 -08:00
.fi
2014-09-24 14:41:07 -07:00
.RE
.SS Description
2014-09-24 14:41:07 -07:00
.P
This runs a predefined command specified in the \fB"test"\fP property of
a package's \fB"scripts"\fP object\.
.SS Example
.P
.RS 2
.nf
{
"scripts": {
"test": "node test\.js"
}
}
.fi
.RE
.P
.RS 2
.nf
npm test
> npm@x\.x\.x test
> node test\.js
(test\.js output would be here)
.fi
.RE
.SS See Also
2014-09-24 14:41:07 -07:00
.RS 0
.IP \(bu 2
npm help run\-script
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help scripts
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help start
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help restart
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help stop
2014-09-24 14:41:07 -07:00
.RE