1--- 2section: cli-commands 3title: npm-test 4description: Test a package 5--- 6 7# npm-test(1) 8 9## Test a package 10 11### Synopsis 12 13```bash 14npm test [-- <args>] 15 16aliases: t, tst 17``` 18 19### Description 20 21This runs a package's "test" script, if one was provided. 22 23### See Also 24 25* [npm run-script](/cli-commands/npm-run-script) 26* [npm scripts](/using-npm/scripts) 27* [npm start](/cli-commands/npm-start) 28* [npm restart](/cli-commands/npm-restart) 29* [npm stop](/cli-commands/npm-stop) 30