简体   繁体   English

npm t 和 npm run test 的区别

[英]Difference between npm t and npm run test

I've seen some people use the command npm t when running tests.我见过一些人在运行测试时使用命令npm t Is this command any different to running npm run test ?这个命令与运行npm run test什么不同吗?

TL;DR there is no difference. TL; DR 没有区别。

It's just a shortcut for npm tests which run the test command in the package.json file.这只是npm tests的快捷方式,它在package.json文件中运行 test 命令。 npm run test performs the same action in this case. npm run test在这种情况下执行相同的操作。

根据 Andy Ray 的评论,文档指出ttest的别名。

npm help t

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM