Skip to content

Commit

Permalink
perf(haste-map): default to node crawl if watchman is not enabled (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 9, 2022
1 parent f6c809b commit 4af559a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,8 @@

### Performance

- `[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))

## 27.5.1

### Features
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/__snapshots__/showConfig.test.ts.snap
Expand Up @@ -22,7 +22,7 @@ exports[`--showConfig outputs config info and exits 1`] = `
"haste": {
"computeSha1": false,
"enableSymlinks": false,
"forceNodeFilesystemAPI": false,
"forceNodeFilesystemAPI": true,
"throwOnModuleCollision": false
},
"injectGlobals": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/src/Defaults.ts
Expand Up @@ -36,7 +36,7 @@ const defaultOptions: Config.DefaultOptions = {
haste: {
computeSha1: false,
enableSymlinks: false,
forceNodeFilesystemAPI: false,
forceNodeFilesystemAPI: true,
throwOnModuleCollision: false,
},
injectGlobals: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/src/ValidConfig.ts
Expand Up @@ -60,7 +60,7 @@ const initialOptions: Config.InitialOptions = {
computeSha1: true,
defaultPlatform: 'ios',
enableSymlinks: false,
forceNodeFilesystemAPI: false,
forceNodeFilesystemAPI: true,
hasteImplModulePath: '<rootDir>/haste_impl.js',
hasteMapModulePath: '',
platforms: ['ios', 'android'],
Expand Down

0 comments on commit 4af559a

Please sign in to comment.