You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Used Package Manager
npm
### Validations
- [X] Follow our [Code of Conduct](https://github.com/vitest-dev/vitest/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitest.dev/guide/).
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vitest/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vitest/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to call
useFakeTimers({})
with any provided options param (even an empty object!) in ahappy-dom
environment, an error is thrown:There doesn't seem to be any additional stack trace.
I was hoping to use the
shouldAdvanceTime
option mentioned in this comment: testing-library/dom-testing-library#987 (comment), but it seems in happy-dom I can't use even an empty options object!Reproduction
Check out this repo: https://github.com/dallonf/vitest-fake-timers-happy-dom-repo
Run
npm install
andnpm test
in Node 18 (I wasn't able to reproduce in StackBlitz, or Node 16 which it uses).System Info
The text was updated successfully, but these errors were encountered: