mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: Add polyfill for es6 funcs in test
This commit is contained in:
parent
e92c787d3c
commit
4c393b49fb
2 changed files with 5 additions and 3 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue