I've seen some people use the command npm t
when running tests. Is this command any different to running npm run test
?
TL;DR there is no difference.
It's just a shortcut for npm tests
which run the test command in the package.json
file. npm run test
performs the same action in this case.
根据 Andy Ray 的评论,文档指出t
是test
的别名。
npm help t
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.