Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Commit

Permalink
Use babelify to transform jsx during test
Browse files Browse the repository at this point in the history
 * Remove react-tools, reactify
  • Loading branch information
yang-wei committed Apr 16, 2016
1 parent 3467484 commit 8397a85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8397a85

Please sign in to comment.