Skip to content

Commit 1615a2d

Browse files
authored
Do not return all files when checking changed files from last commit (#7228)
1 parent cb52ef4 commit 1615a2d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
- `[jest-runtime]` Fix missing coverage when using negative glob pattern in `testMatch` ([#7170](https://github.com/facebook/jest/pull/7170))
5454
- `[*]` Ensure `maxWorkers` is at least 1 (was 0 in some cases where there was only 1 CPU) ([#7182](https://github.com/facebook/jest/pull/7182))
5555
- `[jest-runtime]` Fix transform cache invalidation when requiring a test file from multiple projects ([#7186](https://github.com/facebook/jest/pull/7186))
56+
- `[jest-changed-files]` Return correctly the changed files when using `lastCommit=true` on Mercurial repositories ([#7228](https://github.com/facebook/jest/pull/7228))
5657

5758
### Chore & Maintenance
5859

packages/jest-changed-files/src/hg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const adapter: SCMAdapter = {
4141
} else if (options && options.changedSince) {
4242
args.push('--rev', `ancestor(., ${options.changedSince})`);
4343
} else if (options && options.lastCommit === true) {
44-
args.push('-A');
44+
args.push('--change', '.');
4545
}
4646
args.push(...includePaths);
4747

0 commit comments

Comments
 (0)