diff --git a/jest/preprocessor.js b/jest/preprocessor.js deleted file mode 100644 index c7d7fd1..0000000 --- a/jest/preprocessor.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var ReactTools = require('react-tools'); - -module.exports = { - process: function(src) { - return ReactTools.transform(src, {harmony: true}); - } -}; diff --git a/package.json b/package.json index be885c0..8ff979e 100644 --- a/package.json +++ b/package.json @@ -25,25 +25,25 @@ "react": "^0.13.0 || ^0.14.0-a" }, "devDependencies": { + "babel-jest": "^5.3.0", "del": "^0.1.3", "gulp": "^3.8.10", "gulp-react": "^2.0.0", "gulp-shell": "^0.3.0", "jest-cli": "^0.2.1", "react": "^0.14.0-a", - "react-dom": "^0.14.0-a", - "react-tools": "^0.13.0" + "react-dom": "^0.14.0-a" }, "scripts": { - "prepublish": "./node_modules/.bin/gulp", - "test": "./node_modules/.bin/jest" + "prepublish": "gulp", + "test": "jest" }, "engines": { "node": ">=0.10.0" }, "jest": { "rootDir": "src", - "scriptPreprocessor": "../jest/preprocessor.js", + "scriptPreprocessor": "../node_modules/babel-jest", "setupEnvScriptFile": "../jest/environment.js", "unmockedModulePathPatterns": [ ""