added config for Jest tests location

This commit is contained in:
Stephen Rodriguez
2015-06-10 14:38:32 -04:00
parent 61b8a84945
commit cdc1fe26f0
2 changed files with 1 additions and 9 deletions

View File

@@ -6,6 +6,7 @@
"testFileExtensions": [ "testFileExtensions": [
"jest.js" "jest.js"
], ],
"testDirectoryName": "tests",
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest", "scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"unmockedModulePathPatterns": [ "unmockedModulePathPatterns": [
"<rootDir>/node_modules/react" "<rootDir>/node_modules/react"

View File

@@ -1,9 +0,0 @@
// preprocessor.js
var ReactTools = require('react-tools');
var to5 = require('6to5-jest').process;
module.exports = {
process: function(src, filename) {
return ReactTools.transform(to5(src, filename));
}
};