Skip to content

Conversation

@G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Oct 16, 2025

I've gotten tripped up by this a few times now so I think it would be good to mention - there is probably more documentation to add at some point but this is a good start 🙂

I know that both vitest and jest have some fake timer code related to this which might be better in some cases, but as far as I know it doesn't "just work" and does require using fake timers so I think it's still useful to document how you can manually mock it.

I'm happy to expand the documentation to also mention this once I've had a chance to explore it myself, but I'm currently not able to as it was introduced in Jest v30 and I'm stuck on v29 due to vuejs/vue-jest#573 🙃

Somewhat related to #1913

@netlify
Copy link

netlify bot commented Oct 16, 2025

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit a65594a
🔍 Latest deploy log https://app.netlify.com/projects/vue-test-utils-docs/deploys/68f140d9edddfd000872ec50
😎 Deploy Preview https://deploy-preview-2718--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@cexbrayat cexbrayat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cexbrayat cexbrayat merged commit 2324c65 into vuejs:main Oct 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants