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
This wrapping object would allow us to add metadata to the suites or make it extensible for other options in the future, such as a description, a default latency or other settings per-suite, e.g.:
module.exports={description: "This suite does things.",latency: 1000,mocks: [{description: "This mock does things",match: 'http://example.com',options: {text: 'ok'}}]}
Or perhaps (optionally) more simply, just an array of objects:
Allow mocks to export an object syntax instead of nested arrays (and let
mockyeah.get()
, etc. accept these as a single argument), e.g.:or perhaps (maybe also):
or:
Use programmatically:
Use in mock suite:
This wrapping object would allow us to add metadata to the suites or make it extensible for other options in the future, such as a description, a default latency or other settings per-suite, e.g.:
Or perhaps (optionally) more simply, just an array of objects:
See also single suite option #410, and suite files as JSON #414.
The text was updated successfully, but these errors were encountered: