2

私の karma.conf.js には以下が含まれます:

plugins: [
    'karma-jasmine',
    'karma-phantomjs-launcher',
    'karma-ng-html2js-preprocessor'
],
preprocessors: {
    '../../mypath/*.html': ['ng-html2js']
},
ngHtml2JsPreprocessor: {
    moduleName: 'templates'
},

(プラグインも指定せずに試しました。)

私のdevDependenciesには以下が含まれます:

"karma-ng-html2js-preprocessor": "^0.2.0"`

私のテストは次のとおりです。

beforeEach(module('templates'));

これらはエラーを与えます:

Module 'templates' is not available!

でカルマを実行すると--log-level debug、エントリが表示されません。[preprocessor.html2js](私は得ますLoading plugin karma-ng-html2js-preprocessor.

私は何を間違っていますか?

4

1 に答える 1