We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
npm test
1 parent eb061ca commit 7d81c85Copy full SHA for 7d81c85
docs/content/commands/npm-test.md
@@ -14,7 +14,28 @@ aliases: t, tst
14
15
### Description
16
17
-This runs a package's "test" script, if one was provided.
+This runs a predefined command specified in the `"test"` property of
18
+a package's `"scripts"` object.
19
+
20
+### Example
21
22
+```json
23
+{
24
+ "scripts": {
25
+ "test": "node test.js"
26
+ }
27
+}
28
+```
29
30
+```bash
31
+npm start
32
+> npm@x.x.x test
33
+> node test.js
34
35
+(test.js output would be here)
36
37
38
39
40
### See Also
41
0 commit comments