#sinon — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #sinon, aggregated by home.social.
-
QUnit 2.20.1
🐛 Fix compat with sinon.useFakeTimers in IE 10 and IE 11.
🐛 Fix hanging assert.async() after assert.timeout().Welcome Timmy Willison @timmywil as QUnit contributor! #qunit #sinon
Details: https://github.com/qunitjs/qunit/blob/2.20.1/History.md
Download: https://qunitjs.com/intro/#release-channels -
For added niceness: Combine #sinon with #chaijs through https://github.com/domenic/sinon-chai and be able to interact with your mocks in your normal Chai fashion:
spy.should.have.been.calledTwice;
-
In the latest version of #nodejs, #nodejs20, there's experimental mock timers built in which may be possible to use instead: https://nodejs.org/api/test.html#class-mocktimers
But #sinon in general is a very solid package, I would opt for that for now, at least until the built in one is no longer experimental
-
CW: wirre gedankliche assoziationen zu telekom, kirche und neuneuroticket