Skip to content

Commit

Permalink
Forbid Haste in Jest (facebook#11647)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and raphamorim committed Nov 27, 2017
1 parent 766a528 commit f92cb85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/jest/config.source.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use strict';

module.exports = {
haste: {
hasteImplModulePath: require.resolve('./noHaste.js'),
},
modulePathIgnorePatterns: [
'<rootDir>/scripts/rollup/shims/',
'<rootDir>/scripts/bench/',
Expand Down
8 changes: 8 additions & 0 deletions scripts/jest/noHaste.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

module.exports = {
getHasteName() {
// We never want Haste.
return null;
},
};

0 comments on commit f92cb85

Please sign in to comment.