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
{{ message }}
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
Currently there is a "pain point" when defining fixtures: All fixtures responding to the same request have to redefined its url, and there is no a clear mechanism to identify how many of them correspond to a single url. You can know the total amount of fixtures you have defined (in the CLI, for example), but you can't know how many single routes are you listening to.
As a proposal, fixtures should be renamed into routes, which I consider can be clearer, and should have a variants property, which should contain all possible responses for the same url, as in:
Currently there is a "pain point" when defining fixtures: All
fixtures
responding to the same request have to redefined its url, and there is no a clear mechanism to identify how many of them correspond to a single url. You can know the total amount of fixtures you have defined (in the CLI, for example), but you can't know how many single routes are you listening to.As a proposal, fixtures should be renamed into
routes
, which I consider can be clearer, and should have avariants
property, which should contain all possible responses for the same url, as in:Then,
behaviors
(which could be renamed intomocks
for more clarity), should be defined as in:Routes and variants could also include a
handler
property which should decide theroutesHandler
to use when loading it, as in:The text was updated successfully, but these errors were encountered: