Include vendor/ when running jest tests
Now the two transform tests get run alongside the React core tests. Test Plan: jest
Ben Alpert committed
Aug 30, 2014 at 01:08 UTC
1ba022b1ea2546d9cab19ab99f1bd1f86baf6ded
2 files changed
+7
-7
package.json
+6
-6
@@ -79,11 +79,11 @@
79
"jest": "jest"
80
},
81
"jest": {
82
- "rootDir": "src",
83
- "scriptPreprocessor": "../jest/preprocessor.js",
84
- "setupEnvScriptFile": "../jest/environment.js",
85
- "unmockedModulePathPatterns": [
86
- ""
87
- ]
82
+ "rootDir": "",
83
+ "scriptPreprocessor": "jest/preprocessor.js",
84
+ "setupEnvScriptFile": "jest/environment.js",
85
+ "modulePathIgnorePatterns": ["/build/", "/node_modules/"],
86
+ "testPathIgnorePatterns": ["/build/", "/node_modules/"],
87
+ "unmockedModulePathPatterns": [""]
88
}
89
}
vendor/fbtransform/syntax.js
+1
-1
@@ -18,7 +18,7 @@ function transformAll(source, options, excludes) {
18
19
// The typechecker transform must run in a second pass in order to operate on
20
// the entire source code -- so exclude it from the first pass
21
- var visitorsList = visitors.getVisitorsList(excludes.concat('typechecker'));
21
+ var visitorsList = visitors.getAllVisitors(excludes.concat('typechecker'));
22
source = transform(visitorsList, source, options);
23
if (excludes.indexOf('typechecks') == -1 && /@typechecks/.test(source.code)) {
24
source = transform(