Skip to content

Commit 4af559a

Browse files
authored
perf(haste-map): default to node crawl if watchman is not enabled (#12320)
1 parent f6c809b commit 4af559a

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
### Performance
1717

18+
- `[jest-haste-map]` [**BREAKING**] Default to `node` crawler over shelling out to `find` if `watchman` is not enabled ([#12320](https://github.com/facebook/jest/pull/12320))
19+
1820
## 27.5.1
1921

2022
### Features

e2e/__tests__/__snapshots__/showConfig.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports[`--showConfig outputs config info and exits 1`] = `
2222
"haste": {
2323
"computeSha1": false,
2424
"enableSymlinks": false,
25-
"forceNodeFilesystemAPI": false,
25+
"forceNodeFilesystemAPI": true,
2626
"throwOnModuleCollision": false
2727
},
2828
"injectGlobals": true,

packages/jest-config/src/Defaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const defaultOptions: Config.DefaultOptions = {
3636
haste: {
3737
computeSha1: false,
3838
enableSymlinks: false,
39-
forceNodeFilesystemAPI: false,
39+
forceNodeFilesystemAPI: true,
4040
throwOnModuleCollision: false,
4141
},
4242
injectGlobals: true,

packages/jest-config/src/ValidConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const initialOptions: Config.InitialOptions = {
6060
computeSha1: true,
6161
defaultPlatform: 'ios',
6262
enableSymlinks: false,
63-
forceNodeFilesystemAPI: false,
63+
forceNodeFilesystemAPI: true,
6464
hasteImplModulePath: '<rootDir>/haste_impl.js',
6565
hasteMapModulePath: '',
6666
platforms: ['ios', 'android'],

0 commit comments

Comments
 (0)