Skip to content

Commit

Permalink
fix(docs): clean up npm test docs
Browse files Browse the repository at this point in the history
Adds an example and standardizes the language w/ start and stop
  • Loading branch information
wraithgar committed Jan 8, 2021
1 parent eb061ca commit 7d81c85
Showing 1 changed file with 22 additions and 1 deletion.
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 start
> npm@x.x.x test
> node test.js

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



### See Also

Expand Down

0 comments on commit 7d81c85

Please sign in to comment.