Skip to content

Commit 59324ab

Browse files
committed
Merge pull request facebook#2117 from spicyj/jest-vendor
Include vendor/ when running jest tests
2 parents 87cbde0 + 1ba022b commit 59324ab

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@
7979
"jest": "jest"
8080
},
8181
"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": [""]
8888
}
8989
}

vendor/fbtransform/syntax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function transformAll(source, options, excludes) {
1818

1919
// The typechecker transform must run in a second pass in order to operate on
2020
// 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'));
2222
source = transform(visitorsList, source, options);
2323
if (excludes.indexOf('typechecks') == -1 && /@typechecks/.test(source.code)) {
2424
source = transform(

0 commit comments

Comments
 (0)