Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 3838a972c94b8bbe6fb04220e63b7ff2 > files > 264

nodejs-docs-10.22.1-9.mga7.noarch.rpm

---
section: cli-commands 
title: npm-test
description: Test a package
---

# npm-test(1)

## Test a package

### Synopsis

```bash
npm test [-- <args>]

aliases: t, tst
```

### Description

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

### See Also

* [npm run-script](/cli-commands/npm-run-script)
* [npm scripts](/using-npm/scripts)
* [npm start](/cli-commands/npm-start)
* [npm restart](/cli-commands/npm-restart)
* [npm stop](/cli-commands/npm-stop)