Skip to content

Commit

Permalink
import babel-register in karma.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
simonguo committed Aug 25, 2017
1 parent 4c9a5c0 commit fc646fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions karma.conf.js
@@ -1,3 +1,6 @@
/* eslint-disable */
require('babel-register');

const webpackConfig = {
output: {
pathinfo: true
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -11,7 +11,6 @@
"tdd": "karma start",
"lint": "eslint src *.js*",
"test": "npm run lint && NODE_ENV=test karma start --single-run",
"test-sauce": "NODE_ENV=test karma start karma.sauce.conf.js",
"coveralls": "cat ./coverage/lcov/lcov.info | ./node_modules/.bin/coveralls"
},
"keywords": [
Expand Down Expand Up @@ -49,6 +48,7 @@
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.26.0",
"chai": "^3.5.0",
"child-process-promise": "^2.0.2",
"colors": "^1.1.2",
Expand All @@ -70,7 +70,6 @@
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^1.1.1",
"karma-mocha-reporter": "^2.0.4",
"karma-sauce-launcher": "^1.1.0",
"karma-sinon-chai": "^1.2.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "2.0.3",
Expand Down

0 comments on commit fc646fc

Please sign in to comment.