Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jeysal authored and Udit Takkar committed Oct 29, 2021
1 parent a34295b commit a38bf11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -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

Expand Down
7 changes: 2 additions & 5 deletions packages/jest-haste-map/src/index.ts
Expand Up @@ -334,14 +334,11 @@ export default class HasteMap extends EventEmitter {

static getCacheFilePath(
tmpdir: Config.Path,
name: string,
id: string,
...extra: Array<string>
): 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 {
Expand Down

0 comments on commit a38bf11

Please sign in to comment.