@samitouri / QOS-React / commits / 575982b96d

Forbid Haste in Jest (#11647)

Dan Abramov committed Nov 23, 2017 at 18:02 UTC 575982b96dfd959f72ce8f44bc7d3f3c5e102597
2 files changed +11
scripts/jest/config.source.js
+3
@@ -1,6 +1,9 @@
1 'use strict';
2
3 module.exports = {
4 + haste: {
5 + hasteImplModulePath: require.resolve('./noHaste.js'),
6 + },
7 modulePathIgnorePatterns: [
8 '<rootDir>/scripts/rollup/shims/',
9 '<rootDir>/scripts/bench/',
scripts/jest/noHaste.js new
+8
@@ -0,0 +1,8 @@
1 +'use strict';
2 +
3 +module.exports = {
4 + getHasteName() {
5 + // We never want Haste.
6 + return null;
7 + },
8 +};