From 8397a858ce3fc61ebfb93b2e2e5fcda17cfb6bb1 Mon Sep 17 00:00:00 2001 From: yang-wei Date: Sat, 16 Apr 2016 14:44:40 +0900 Subject: [PATCH] Use babelify to transform jsx during test * Remove react-tools, reactify --- karma.conf.js | 4 +++- package.json | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 683cd66..8b5561d 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -24,7 +24,9 @@ module.exports = function(config) { browserify: { extensions: ['.jsx'], debug: true, - transform: [ ['reactify', {'es6': true}] ] + transform: [ + ['babelify', {"presets": ["react", "es2015"]}] + ] }, // test results reporter to use diff --git a/package.json b/package.json index b2972e1..daaebea 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,6 @@ "mocha": "^2.2.5", "phantomjs": "^2.1.3", "react-addons-test-utils": "^15.0.1", - "react-tools": "^0.13.3", - "reactify": "^1.1.1", "uglify-js": "^2.4.23", "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0",