Forbid Haste in Jest (#11647)

This commit is contained in:
Dan Abramov authored and GitHub committed 2017-11-23 18:02:47 +00:00
1 parent fa7a97fc46
commit 575982b96d
2 files changed
+11

No files matched your search

+3
View File
@@ -1,6 +1,9 @@
'use strict';
module.exports = {
haste: {
hasteImplModulePath: require.resolve('./noHaste.js'),
},
modulePathIgnorePatterns: [
'<rootDir>/scripts/rollup/shims/',
'<rootDir>/scripts/bench/',
+8
View File
@@ -0,0 +1,8 @@
'use strict';
module.exports = {
getHasteName() {
// We never want Haste.
return null;
},
};