除非提交所有内容,否则 DefinitelyTyped 测试脚本拒绝运行:
> npm test
..
Error: 'git diff' should be empty. Following files changed:
..
我觉得这个使用起来很尴尬。在编写类型时,我经常想尝试一些事情并运行测试以在决定提交什么之前查看哪些有效。目前,这需要重复提交所有内容、运行测试,然后恢复提交。
有没有办法在不提交的情况下运行 DefinitelyTyped 测试?
最佳答案
提交您的更改,然后运行 npm test
或 yarn test
。
如果您需要进行进一步的更改,请使用 git --amend
更新您的本地提交。
https://stackoverflow.com/questions/56719103/
相关文章:
scala - 使用 AWS s3 的分段上传 API 时出现内存不足问题
python-3.x - 如何在 Google Cloud Composer 中设置 chromed
amazon-web-services - 如何终止到 elb 的 HTTPS 流量并且容器正在运行
amazon-web-services - 如何使用单例类解决 AWS 模拟测试
dialogflow-es - 如何将 dialogflow 与 instagram 集成
spring - hibernate 时存储的 LocalDate 错误
c# - 观察并删除(截图),如果在Iphone中使用我的App时截图
sql-server - 在 SQL Server 2016 代理作业中找不到自定义 dll