added config for Jest tests location
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user