running jest tests using babel-jest preprocess

This commit is contained in:
Stephen Rodriguez
2015-07-14 13:27:58 -04:00
parent b25cebbca5
commit 89ef4bdf2f
3 changed files with 4 additions and 10 deletions

View File

@@ -14,7 +14,7 @@
"testFileExtensions": [
"jest.js"
],
"scriptPreprocessor": "<rootDir>/tests/preprocesser.js",
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"testDirectoryName": "tests",
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react"
@@ -22,6 +22,7 @@
},
"private": true,
"devDependencies": {
"babel-jest": "^5.3.0",
"bower": "^1.4.1",
"chai": "^3.0.0",
"del": "^1.2.0",