Skip to content

Commit

Permalink
chore: remove snapshot assertion from changed files (#11228)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Mar 23, 2021
1 parent 2d96526 commit 6214a88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
19 changes: 0 additions & 19 deletions e2e/__tests__/__snapshots__/jestChangedFiles.test.ts.snap

This file was deleted.

7 changes: 4 additions & 3 deletions e2e/__tests__/jestChangedFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import {tmpdir} from 'os';
import * as path from 'path';
import {wrap} from 'jest-snapshot-serializer-raw';
import semver = require('semver');
import slash = require('slash');
import {findRepos, getChangedFilesForRoots} from 'jest-changed-files';
Expand Down Expand Up @@ -354,7 +353,8 @@ test('handles a bad revision for "changedSince", for git', async () => {
const {exitCode, stderr} = runJest(DIR, ['--changedSince=^blablabla']);

expect(exitCode).toBe(1);
expect(wrap(stderr)).toMatchSnapshot();
expect(stderr).toContain('Test suite failed to run');
expect(stderr).toContain("fatal: bad revision '^blablabla...HEAD'");
});

testIfHg('gets changed files for hg', async () => {
Expand Down Expand Up @@ -508,5 +508,6 @@ testIfHg('handles a bad revision for "changedSince", for hg', async () => {
const {exitCode, stderr} = runJest(DIR, ['--changedSince=blablabla']);

expect(exitCode).toBe(1);
expect(wrap(stderr)).toMatchSnapshot();
expect(stderr).toContain('Test suite failed to run');
expect(stderr).toContain("abort: unknown revision 'blablabla'");
});

0 comments on commit 6214a88

Please sign in to comment.