---
name: "npm-test"
section: "1"
platform: "linux"
package: "npm"
version: "9.2.0~ds1-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/npm-test"
---

# npm-test(1)

## NAME

**npm-test**

## Synopsis

\<!-- AUTOGENERATED USAGE DESCRIPTIONS --\>

## Description

This runs a predefined command specified in the **&quot;test&quot;** property of\
 a package's **&quot;scripts&quot;** object.

## Example

```
{
  "scripts": {
    "test": "node test.js"
  }
}
```

```
npm test
> npm@x.x.x test
> node test.js
(test.js output would be here)
```

## Configuration

\<!-- AUTOGENERATED CONFIG DESCRIPTIONS --\>

## See Also

- •

  npm run-script

- •

  npm scripts

- •

  npm start

- •

  npm restart

- •

  npm stop
