---
name: "npm-test"
section: "3"
platform: "linux"
package: "npm"
version: "1.4.21+ds-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/npm-test/3"
---

# npm-test(3)

Test a package

## NAME

**npm-test** - 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.
