diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-21 20:45:56 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-21 20:58:43 +0900 |
commit | d4d54ca4963ef4de3e913746cdee87656dc02229 (patch) | |
tree | 7bf36e1857e5aff17fb298c8a6f0bf5329b9dcc8 /karma.conf.js | |
parent | 55147feb8e64a81ac665575aa6801d315da85e88 (diff) |
install karma-html2js-preprocessor
Diffstat (limited to 'karma.conf.js')
-rw-r--r-- | karma.conf.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/karma.conf.js b/karma.conf.js index 539fb3a..859cee0 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,13 +1,18 @@ module.exports = function (config) { + var webpackConfig = require('./webpack.config.js'); config.set({ basePath: '', frameworks: ['mocha'], - files: ['test/**/*\.test\.js'], + files: [ + 'test/**/*.test.js', + 'test/**/*.html' + ], preprocessors: { - 'test/**/*\.test\.js': [ 'webpack' ] + 'test/**/*.test.js': [ 'webpack' ], + 'test/**/*.html': ['html2js'] }, reporters: ['progress'], |