Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(docs): clean up npm test docs
Adds an example and standardizes the language w/ start and stop

PR-URL: #2462
Credit: @wraithgar
Close: #2462
Reviewed-by: @darcyclarke
  • Loading branch information
wraithgar committed Jan 14, 2021
1 parent 307b3bd commit 23f01b7
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/content/commands/npm-test.md
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

0 comments on commit 23f01b7

Please sign in to comment.