From a38bf116b1bfa6c0023e0533f65cbad77bd1723d Mon Sep 17 00:00:00 2001 From: Tim Seckinger Date: Tue, 19 Oct 2021 16:43:48 +0300 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- packages/jest-haste-map/src/index.ts | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37ae399a6aab..d6553460e748 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,8 @@ ### Chore & Maintenance - `[expect]` `BigInt` global is always defined, don't check for its existence at runtime ([#11979](https://github.com/facebook/jest/pull/11979)) -- `[jest-config, jest-util]` Use `ci-info` instead of `is-ci` to detect CI environment ([#11973](https://github.com/facebook/jest/pull/11973)) -`[jest-config]` [**BREAKING**] Change project config from `name` to `id` ([#11089](https://github.com/facebook/jest/pull/11981)) +- `[jest-config, jest-util]` Use `ci-info` instead of `is-ci` to detect CI environment ([#11973](https://github.com/facebook/jest/pull/11973)) +- `[jest-config, jest-haste-map]` [**BREAKING**] Rename config option `name` to `id` - does not affect `displayName` ([#11981](https://github.com/facebook/jest/pull/11981)) ## 27.3.0 diff --git a/packages/jest-haste-map/src/index.ts b/packages/jest-haste-map/src/index.ts index 07968dd05d64..c95fdb7ff9fe 100644 --- a/packages/jest-haste-map/src/index.ts +++ b/packages/jest-haste-map/src/index.ts @@ -334,14 +334,11 @@ export default class HasteMap extends EventEmitter { static getCacheFilePath( tmpdir: Config.Path, - name: string, + id: string, ...extra: Array ): string { const hash = createHash('md5').update(extra.join('')); - return path.join( - tmpdir, - name.replace(/\W/g, '-') + '-' + hash.digest('hex'), - ); + return path.join(tmpdir, id.replace(/\W/g, '-') + '-' + hash.digest('hex')); } static getModuleMapFromJSON(json: SerializableModuleMap): HasteModuleMap {