mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Forbid Haste in Jest (#11647)
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
haste: {
|
||||
hasteImplModulePath: require.resolve('./noHaste.js'),
|
||||
},
|
||||
modulePathIgnorePatterns: [
|
||||
'<rootDir>/scripts/rollup/shims/',
|
||||
'<rootDir>/scripts/bench/',
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
getHasteName() {
|
||||
// We never want Haste.
|
||||
return null;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user