Jest.usefaketimers使用MUI V5台式机时有时
在尝试使用MUI-X V5桌面的测试进行测试时,我想使用jest usefaketimers来设置系统时间,这将使我能够使用new Date()和下一步测试选择日期,并使用
new date()几个月(因为我过去的选择已禁用)。设置
jest.usefaketimers()
我的测试超时。有解决方案吗?
When trying to run tests with MUI-X v5 DesktopDatePicker, I would like to use Jest useFakeTimers to set the system time that will allow me to test selecting dates with running into issues using new Date()
and next months (as I have past selections disabled). When setting jest.useFakeTimers()
my test timeout. Is there a solution for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论