有一个名为 SCURI 的 npm 包,可以用来自动为 .ts 文件编写单元测试用例,覆盖率超过 70%。
Just need to install this package and once done, create autoSpy.ts file to define how to mock/create stubs for dependencies.
![enter image description here](https://i.stack.imgur.com/bXFSw.png)
我认为 SUCURI 插件只会为您生成规范,并在添加或删除依赖项时帮助您更新它!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)