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:
Ben Alpert
2014-08-30 01:08:57 -07:00
parent 4af98990db
commit 1ba022b1ea
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -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": [""]
}
}
+1 -1
View File
@@ -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(