Repository navigation
fix(deps): update fake-timers to 15.3.2. support toNotFake - #10043
Conversation
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
There is a merge conflict. Could you resolve it, please? |
23782c9 to
28ff20b
Compare
|
@sheremet-va I have rebased atop latest main |
21bbd23 to
156f173
Compare
This version adds bundled types, and a `toNotFake` API to complement `toFake` - Use bundled types instead of @types/sinonjs__fake-timers - Allow passing toNotFake into `vi.useFakeTimers()`
|
@sheremet-va I've rebased atop latest main, and CI is all green. Ready for your re-review. |
|
Fake timer now released 15.4.0 https://github.com/sinonjs/fake-timers/blob/main/CHANGELOG.md#1540--2026-05-05 |
Co-authored-by: Codex <noreply@openai.com>
toNotFake
hi-ogawa
left a comment
There was a problem hiding this comment.
Thanks for the PR. I've pushed some tweaks. I think we can bump 15.4.0 separately as a follow up as it involves some temporal related update (at least docs probably)
|
Thank you for the tweaks and merge @hi-ogawa. |
Description
Updating fake-timers to v15.3.2
This version adds bundled types, a fix to properly restore cancelIdleCallback when uninstalling fake timers, and a
toNotFakeAPI to complementtoFakevi.useFakeTimers()AI disclaimer: This code was AI generated with Copilot using the Sonnet model. I babysat it heavily and iterated to make sure it matches existing patterns and produced as minimal a change as possible.
Question for reviewers
At the moment, toNotFake will require the user to add
nextTickto ensure that nextTick is not mocked, otherwise we'll often throw an error. Should that be added by default?Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.