Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jest-changed-files): improve changedFilesWithAncestor command pattern for Mercurial SCM #12322

Merged
merged 15 commits into from
Apr 21, 2022
8 changes: 8 additions & 0 deletions e2e/__tests__/jestChangedFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,14 @@ test('handles a bad revision for "changedSince", for git', async () => {
});

testIfHg('gets changed files for hg', async () => {
if (process.env.CI) {
mrazauskas marked this conversation as resolved.
Show resolved Hide resolved
// Circle and Travis have very old version of hg (v2, and current
// version is v4.2) and its API changed since then and not compatible
// any more. Changing the SCM version on CIs is not trivial, so we'll just
// skip this test and run it only locally.
return;
}

// file1.txt is used to make a multi-line commit message
// with `hg commit -l file1.txt`.
// This is done to ensure that `changedFiles` only returns files
Expand Down