commands.sh

npm install-test

all

Equivalent to running `npm install` followed by `npm test`. Note: `it` can be used as shorthand for `install-test`.

More info →

Options (3)

boolean

Install all dependencies and then run tests

Example: npm {{[it|install-test]}}
-S, --saveboolean

Install a package and save it as a dependency before running tests

Example: npm {{[it|install-test]}} {{package_name}} {{[-S|--save]}}
-g, --globalboolean

Install dependencies globally and then run tests

Example: npm {{[it|install-test]}} {{[-g|--global]}}

Examples (4)

Install all dependencies and then run tests

npm [it|install-test]

Install a specific package and then run tests

npm [it|install-test] package_name

Install a package and save it as a dependency before running tests

npm [it|install-test] package_name [-S|--save]

Install dependencies globally and then run tests

npm [it|install-test] [-g|--global]
made by @shridhargupta | data from tldr-pages