aboutsummaryrefslogtreecommitdiff
path: root/karma.conf.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-08-21 20:45:56 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-08-21 20:58:43 +0900
commitd4d54ca4963ef4de3e913746cdee87656dc02229 (patch)
tree7bf36e1857e5aff17fb298c8a6f0bf5329b9dcc8 /karma.conf.js
parent55147feb8e64a81ac665575aa6801d315da85e88 (diff)
install karma-html2js-preprocessor
Diffstat (limited to 'karma.conf.js')
-rw-r--r--karma.conf.js9
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'],