Skip to content

Commit 50b534e

Browse files
committed
chore: fix snapshot
1 parent 19886b5 commit 50b534e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

e2e/__tests__/__snapshots__/consoleAfterTeardown.test.ts.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@ PASS __tests__/console.test.js
1414
13 | });
1515
14 | });
1616
15 |
17-
18-
at BufferedConsole.log (../../packages/jest-console/build/BufferedConsole.js:197:10)
19-
at log (__tests__/console.test.js:12:13)
2017
`;

e2e/__tests__/consoleAfterTeardown.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ test('console printing', () => {
1414
const {rest} = extractSummary(stderr);
1515

1616
expect(exitCode).toBe(0);
17-
expect(wrap(rest)).toMatchSnapshot();
17+
18+
const withoutTrace = rest.split('\n').slice(0, -3).join('\n');
19+
20+
expect(wrap(withoutTrace)).toMatchSnapshot();
1821
});

0 commit comments

Comments
 (0)