Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix factories defaulting tests when sinon is used. #1068

Merged
merged 1 commit into from
May 3, 2024

Conversation

stephenh
Copy link
Collaborator

@stephenh stephenh commented May 3, 2024

When sinon's fake timers are installed, global.Date is mutated to its own ClockDate function, which breaks our equality check to the field.type, which will have captured the original global.Date value.

When sinon's fake timers are installed, `global.Date` is mutated to
its own `ClockDate` function, which breaks our equality check to the
`field.type`, which will have captured the original `global.Date`
value.
@stephenh stephenh merged commit 4651d07 into main May 3, 2024
4 checks passed
@stephenh stephenh deleted the fix-factory-dates-with-sinon branch May 3, 2024 01:16
stephenh pushed a commit that referenced this pull request May 3, 2024
## [1.163.4](v1.163.3...v1.163.4) (2024-05-03)

### Bug Fixes

* Fix factories defaulting tests when sinon is used. ([#1068](#1068)) ([4651d07](4651d07))
@stephenh
Copy link
Collaborator Author

stephenh commented May 3, 2024

🎉 This PR is included in version 1.163.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants