Skip to content

Commit

Permalink
fix: increase the maximum possible file size that jest-haste-map can …
Browse files Browse the repository at this point in the history
…handle (#13094)
  • Loading branch information
lanpai committed Aug 5, 2022
1 parent 02cd85f commit 59e51df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@

- `[jest-worker]` When a process runs out of memory worker exits correctly and doesn't spin indefinitely ([#13054](https://github.com/facebook/jest/pull/13054))
- `[@jest/expect-utils]` Fix deep equality of ImmutableJS Record ([#13055](https://github.com/facebook/jest/pull/13055))
- `[jest-haste-map]` Increase the maximum possible file size that jest-haste-map can handle ([#13094](https://github.com/facebook/jest/pull/13094))

### Chore & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-haste-map/src/worker.ts
Expand Up @@ -100,7 +100,7 @@ export async function worker(data: WorkerMessage): Promise<WorkerMetadata> {

// If a SHA-1 is requested on update, compute it.
if (computeSha1) {
sha1 = sha1hex(getContent() || fs.readFileSync(filePath));
sha1 = sha1hex(content || fs.readFileSync(filePath));
}

return {dependencies, id, module, sha1};
Expand Down

0 comments on commit 59e51df

Please sign in to comment.