install karma-html2js-preprocessor
This commit is contained in:
parent
55147feb8e
commit
d4d54ca496
3 changed files with 14 additions and 2 deletions
|
@ -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'],
|
||||
|
|
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -3168,6 +3168,12 @@
|
|||
"integrity": "sha1-zlj0fCATqIFW1VpdYTN8CZz1u1E=",
|
||||
"dev": true
|
||||
},
|
||||
"karma-html2js-preprocessor": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/karma-html2js-preprocessor/-/karma-html2js-preprocessor-1.1.0.tgz",
|
||||
"integrity": "sha1-/Ant8Eu+K7bu6boZaPgmtziAIL0=",
|
||||
"dev": true
|
||||
},
|
||||
"karma-mocha": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/karma-mocha/-/karma-mocha-1.3.0.tgz",
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"eslint": "^4.4.1",
|
||||
"karma": "^1.7.0",
|
||||
"karma-firefox-launcher": "^1.0.1",
|
||||
"karma-html2js-preprocessor": "^1.1.0",
|
||||
"karma-mocha": "^1.3.0",
|
||||
"karma-mocha-reporter": "^2.2.3",
|
||||
"karma-sourcemap-loader": "^0.3.7",
|
||||
|
|
Reference in a new issue