Skip to content

Commit ea0bb8a

Browse files
Make FakeTimer test stack agnostic.
1 parent 40c85fe commit ea0bb8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest-util/src/__tests__/FakeTimers-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ describe('FakeTimers', () => {
327327
const timers = new FakeTimers(global, moduleMocker, {rootDir: __dirname});
328328
timers.runAllTimers();
329329
expect(
330-
console.warn.mock.calls[0][0].split('\n').slice(0, -4).join('\n'),
330+
console.warn.mock.calls[0][0].split('\nStack Trace')[0],
331331
).toMatchSnapshot();
332332
console.warn = consoleWarn;
333333
});

0 commit comments

Comments
 (0)