Skip to content

Commit 7ea9a40

Browse files
authored
fix: update @sinonjs/fake-timers (#15470)
1 parent d13a905 commit 7ea9a40

File tree

5 files changed

+112
-10
lines changed

5 files changed

+112
-10
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
- `[jest-environment-node]` Update jest environment with dispose symbols `Symbol` ([#14888](https://github.com/jestjs/jest/pull/14888) & [#14909](https://github.com/jestjs/jest/pull/14909))
3131
- `[expect, @jest/expect]` [**BREAKING**] Add type inference for function parameters in `CalledWith` assertions ([#15129](https://github.com/facebook/jest/pull/15129))
3232
- `[@jest/expect-utils]` Properly compare all types of `TypedArray`s ([#15178](https://github.com/facebook/jest/pull/15178))
33-
- `[@jest/fake-timers]` [**BREAKING**] Upgrade `@sinonjs/fake-timers` to v11 ([#14544](https://github.com/jestjs/jest/pull/14544))
33+
- `[@jest/fake-timers]` [**BREAKING**] Upgrade `@sinonjs/fake-timers` to v13 ([#14544](https://github.com/jestjs/jest/pull/14544) & [#15470](https://github.com/jestjs/jest/pull/15470))
3434
- `[@jest/fake-timers]` Exposing new modern timers function `advanceTimersToFrame()` which advances all timers by the needed milliseconds to execute callbacks currently scheduled with `requestAnimationFrame` ([#14598](https://github.com/jestjs/jest/pull/14598))
3535
- `[jest-matcher-utils]` Add `SERIALIZABLE_PROPERTIES` to allow custom serialization of objects ([#14893](https://github.com/jestjs/jest/pull/14893))
3636
- `[jest-mock]` Add support for the Explicit Resource Management proposal to use the `using` keyword with `jest.spyOn(object, methodName)` ([#14895](https://github.com/jestjs/jest/pull/14895))

e2e/fake-timers/do-not-fake/__tests__/doNotFake.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ globalThis.performance.mark = mockPerformanceMark;
1515
test('fakes all APIs', () => {
1616
jest.useFakeTimers();
1717

18-
expect(globalThis.performance.mark).toBeUndefined();
18+
expect(globalThis.performance.mark).not.toBe(mockPerformanceMark);
1919
});
2020

2121
test('does not fake `performance` instance', () => {

packages/jest-fake-timers/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@jest/types": "workspace:*",
23-
"@sinonjs/fake-timers": "^11.1.0",
23+
"@sinonjs/fake-timers": "^13.0.0",
2424
"@types/node": "*",
2525
"jest-message-util": "workspace:*",
2626
"jest-mock": "workspace:*",

0 commit comments

Comments
 (0)