gpt4 book ai didi

angularjs - Yeoman grunt 测试模式 "path_public/todo/test/mock/**/*.js"与任何文件都不匹配

转载 作者:行者123 更新时间:2023-12-04 20:10:04 25 4
gpt4 key购买 nike

我是 yeoman 员工的新手,所以我正在关注主页底部的好教程here除了 之外的所有作品都很好咕噜测试 .

我得到一个图案 path_public/todo/test/mock/**/*.js does not match any file并且测试失败。

Here是所有堆栈的要点。这里有人知道如何解决这个问题吗?

最佳答案

来自 http://newtriks.com/2013/06/11/automating-angularjs-with-yeoman-grunt-and-bower/

Run grunt karma grunt karma All tests pass! Chrome 27.0 (Mac): Executed 1 of 1 SUCCESS (0.085 secs / 0.018 secs) But wait….there is a warning: WARN [watcher]: Pattern "/Users/newtriks/src/newtriks-dev/js/angularjs-grunt-example/test/mock//.js" does not match any file. Let’s fix this. I tend to prefer to add directories as required and for now I have no mocks so lets comment out the include. Open karma.conf.js and comment out the line with 'test/mock//.js'. Run grunt karma again and the warning should be gone. Note: If you want to follow the same logic for karma-e2e.conf.js also this will ensure the warning is also fixed for the end-to-end tests.

关于angularjs - Yeoman grunt 测试模式 "path_public/todo/test/mock/**/*.js"与任何文件都不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18891182/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com