Skip to content
/ jest Public
forked from jestjs/jest

Commit

Permalink
fix: update @sinonjs/fake-timers (jestjs#15470)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Jan 20, 2025
1 parent d13a905 commit 7ea9a40
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
- `[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))
- `[expect, @jest/expect]` [**BREAKING**] Add type inference for function parameters in `CalledWith` assertions ([#15129](https://github.com/facebook/jest/pull/15129))
- `[@jest/expect-utils]` Properly compare all types of `TypedArray`s ([#15178](https://github.com/facebook/jest/pull/15178))
- `[@jest/fake-timers]` [**BREAKING**] Upgrade `@sinonjs/fake-timers` to v11 ([#14544](https://github.com/jestjs/jest/pull/14544))
- `[@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))
- `[@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))
- `[jest-matcher-utils]` Add `SERIALIZABLE_PROPERTIES` to allow custom serialization of objects ([#14893](https://github.com/jestjs/jest/pull/14893))
- `[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))
Expand Down
2 changes: 1 addition & 1 deletion e2e/fake-timers/do-not-fake/__tests__/doNotFake.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ globalThis.performance.mark = mockPerformanceMark;
test('fakes all APIs', () => {
jest.useFakeTimers();

expect(globalThis.performance.mark).toBeUndefined();
expect(globalThis.performance.mark).not.toBe(mockPerformanceMark);
});

test('does not fake `performance` instance', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-fake-timers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@jest/types": "workspace:*",
"@sinonjs/fake-timers": "^11.1.0",
"@sinonjs/fake-timers": "^13.0.0",
"@types/node": "*",
"jest-message-util": "workspace:*",
"jest-mock": "workspace:*",
Expand Down
Loading

0 comments on commit 7ea9a40

Please sign in to comment.