我用咕噜运行业力,业力使用茉莉花框架。当我启动我的grunt任务时,我遇到了以下错误:
WARN [watcher]: Pattern "Mypath\node_modules\karma-jasmine\lib/jasmine.js" does not match any file.
WARN [watcher]: Pattern "Mypath\node_modules\karma-jasmine\lib/boot.js" does not match any file.
WARN [watcher]: Pattern "Mypath\node_modules\karma-jasmine\lib/adapter.js" does not match any file.
我无法理解为什么。当我复制/粘贴路径时,我找到了文件。
这是我的业力文件conf:
module.exports = function (config) {
config.set({
preprocessors: {
'**/*.directive.html': 'ng-html2js'
},
files: [
{ pattern: '../../../Scripts/angular.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/angular-mocks.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/angular-ui-router.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/angular-ui/ui-utils.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/angular-animate.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/angular-messages.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/angular-file-upload.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/jquery-2.1.1.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/jquery.signalR-2.0.3.js', watched: false, included: true, served: true },
{ pattern: '../../../Scripts/angular-ui/ui-bootstrap.js', watched: false, included: true, served: true },
{ pattern: '**/*.directive.html', watched: false, included: true, served: true },
{ pattern: 'appNV.js', watched: false, included: true, served: true },
{ pattern: 'Test/Unit_Test/**/*.spec.js', watched: false, included: true, served: true }
],
ngHtml2JsPreprocessor: {
prependPrefix: '/',
moduleName: 'directive.template'
},
basePath: process.cwd(),
frameworks: ['jasmine'],
reporters: ['progress', 'html'],
browsers: ['Chrome'],
autoWatch: false,
singleRun: true,
logLevel: config.LOG_DEBUG,
htmlReporter: {
outputFile: 'Test/units.html'
}
});
};
有人有想法吗?