v0.12.0 #521
diego-aquino
announced in
Announcements
v0.12.0
#521
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
v0.12.0 is here! 🎉
Features
💡 New
times()
andcheckTimes()
APIs (Declarative validation of the number of intercepted requests #398 in d5790c7):Zimic now supports declarative limits on the number of requests that a handler should respond to.
You can combine
handler.times()
withinterceptor.checkTimes()
to make sure your application made the expected number of requests. Previously, it was a common practice to check the length of thehandler.requests()
array. With the newtimes()
andcheckTimes()
APIs, the expected number of requests can be defined directly in the handler, similarly tohandler.with()
, and validated withinterceptor.checkTimes()
.Learn more at the
handler.times()
,handler.checkTimes()
, andinterceptor.checkTimes()
API references.Dependencies
Deprecations
🟡 Removed
handler.bypass()
(Removehandler.bypass()
#500 in 84fd956)handler.bypass()
was deprecated in v0.11.0 and is now removed. Learn more at Deprecatehandler.bypass()
#498.Credits
Huge thanks to @diego-aquino for helping!
Full Changelog:
v0.11.1...v0.12.0
times()
andcheckTimes()
(Declarative validation of the number of intercepted requests #398) by @diego-aquino in feat(#zimic): addtimes()
andcheckTimes()
(#398) #512handler.bypass()
(Removehandler.bypass()
#500) by @diego-aquino in feat(#zimic)!: removehandler.bypass()
(#500) #514src
in npm releases (Includesrc
in npm releases #478) by @diego-aquino in chore(#zimic): includesrc
in npm releases (#478) #515interceptor.clear()
tobeforeEach()
by @diego-aquino in docs(wiki): moveinterceptor.clear()
tobeforeEach()
#516times()
andcheckTimes()
descriptions by @diego-aquino in docs(#zimic): improvetimes()
andcheckTimes()
descriptions #518This discussion was created from the release v0.12.0.
Beta Was this translation helpful? Give feedback.
All reactions