Forbid Haste in Jest (#11647)

This commit is contained in:
Dan Abramov
2017-11-23 18:02:47 +00:00
committed by GitHub
parent fa7a97fc46
commit 575982b96d
2 changed files with 11 additions and 0 deletions
+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;
},
};