diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f83b1fe2ab3..1f8d4cb3403a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,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 diff --git a/packages/jest-haste-map/src/worker.ts b/packages/jest-haste-map/src/worker.ts index 4422dbf7017a..13fd786809fc 100644 --- a/packages/jest-haste-map/src/worker.ts +++ b/packages/jest-haste-map/src/worker.ts @@ -100,7 +100,7 @@ export async function worker(data: WorkerMessage): Promise { // 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};