mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Include vendor/ when running jest tests
Now the two transform tests get run alongside the React core tests. Test Plan: jest
This commit is contained in:
+6
-6
@@ -79,11 +79,11 @@
|
||||
"jest": "jest"
|
||||
},
|
||||
"jest": {
|
||||
"rootDir": "src",
|
||||
"scriptPreprocessor": "../jest/preprocessor.js",
|
||||
"setupEnvScriptFile": "../jest/environment.js",
|
||||
"unmockedModulePathPatterns": [
|
||||
""
|
||||
]
|
||||
"rootDir": "",
|
||||
"scriptPreprocessor": "jest/preprocessor.js",
|
||||
"setupEnvScriptFile": "jest/environment.js",
|
||||
"modulePathIgnorePatterns": ["/build/", "/node_modules/"],
|
||||
"testPathIgnorePatterns": ["/build/", "/node_modules/"],
|
||||
"unmockedModulePathPatterns": [""]
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -18,7 +18,7 @@ function transformAll(source, options, excludes) {
|
||||
|
||||
// The typechecker transform must run in a second pass in order to operate on
|
||||
// the entire source code -- so exclude it from the first pass
|
||||
var visitorsList = visitors.getVisitorsList(excludes.concat('typechecker'));
|
||||
var visitorsList = visitors.getAllVisitors(excludes.concat('typechecker'));
|
||||
source = transform(visitorsList, source, options);
|
||||
if (excludes.indexOf('typechecks') == -1 && /@typechecks/.test(source.code)) {
|
||||
source = transform(
|
||||
|
||||
Reference in New Issue
Block a user