【发布时间】:2013-09-19 09:36:30
【问题描述】:
我是 yeoman 员工的新手,所以我正在关注主页底部的好教程 here,除了 grunt test 之外,所有作品都很好。
我得到了一个 Pattern path_public/todo/test/mock/**/*.js does not match any file 并且测试失败了。
Here 是所有堆栈的要点。这里有人知道如何解决这个问题吗?
【问题讨论】:
-
你的应用中有没有类似path_public/todo/test/mock/这样的路径
-
@Whisher 正是 BKM 所说的,您的应用程序中有
path_public/todo/test/mock吗?如果不是,那么在您的karma.conf.js中注释掉将位于file: [files_here]中的那一行 -
我有这些文件:[ 'app/bower_components/angular/angular.js', 'app/bower_components/angular-mocks/angular-mocks.js', 'app/scripts/* .js'、'app/scripts/**/*.js'、'test/mock/**/*.js'、'test/spec/**/*.js' ],但在我的部署设置中yeoman 没有模拟文件夹:(
标签: angularjs gruntjs yeoman karma-runner