Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion docs/content/commands/npm-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,28 @@ aliases: t, tst

### Description

This runs a package's "test" script, if one was provided.
This runs a predefined command specified in the `"test"` property of
a package's `"scripts"` object.

### Example

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

```bash
npm test
> npm@x.x.x test
> node test.js

(test.js output would be here)
```



### See Also

Expand Down