Skip to content

Support for Manual Stubbing of Responses. #25

@blad

Description

@blad
new Mockingjays().start({
  stub: [ 
    onCondition: (request) -> true // condition on which replacement should occur
    response: (request) -> { return {status, data} }; // Return a stub of the response to provide on the 
    ...
  ]
});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions