fix: Add polyfill for es6 funcs in test

This commit is contained in:
1ambda 2017-04-03 21:28:22 +09:00
parent e92c787d3c
commit 4c393b49fb
2 changed files with 5 additions and 3 deletions

View file

@ -37,6 +37,9 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
// for polyfill
'node_modules/babel-polyfill/dist/polyfill.js',
// bower:js
'bower_components/jquery/dist/jquery.js',
'bower_components/es5-shim/es5-shim.js',
@ -124,8 +127,7 @@ module.exports = function(config) {
preprocessors: {
'src/*/{*.js,!(test)/**/*.js}': 'coverage',
'src/index.js': ['webpack', 'sourcemap',],
'src/**/*.test.js': ['webpack', 'sourcemap',],
'src/**/*.js': ['webpack', 'sourcemap',],
},
coverageReporter: {

View file

@ -16,7 +16,7 @@
"dev:watch": "grunt watch-webpack-dev",
"dev": "npm-run-all --parallel dev:server dev:watch",
"visdev": "npm-run-all --parallel visdev:server dev:watch",
"pretest": "npm install karma-phantomjs-launcher",
"pretest": "npm install karma-phantomjs-launcher babel-polyfill",
"test": "karma start karma.conf.js"
},
"dependencies": {