Skip to content

Ability to specify a delayed response #102

Description

@robertbird

Hi there,

This looks like a great mocking framework and exactly what I need for testing, so thanks for putting in all the hard work and sharing this! However I am looking to be able to simulate quite slow services with latency etc. So it would be a really great feature to be able to add a comment to set a delay

i.e. for 2000ms delay
//! delay: 2000

I know the obvious answer is to have a look myself and submit a pull request. So I will try if I get a chance, but I am new to node, so not sure if in reality I will or not. So just thought I would raise the suggestion.

Any tips on a starting point to implement this would also be great! :)

Cheers,
Rob

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions