summaryrefslogtreecommitdiff
path: root/deps/npm/doc/api/npm-test.md
blob: bc48dcc35f9572ecc107073d84ca3dfb2d67c201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
npm-test(3) -- Test a package
=============================

## SYNOPSIS

      npm.commands.test(packages, callback)

## DESCRIPTION

This runs a package's "test" script, if one was provided.

To run tests as a condition of installation, set the `npat` config to
true.

npm can run tests on multiple packages. Just specify multiple packages
in the `packages` parameter.