Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(replyWithDelay): add replyWithDelay function #383

Closed

Conversation

seriouslag
Copy link

@seriouslag seriouslag commented Apr 11, 2024

This PR exposes a method to delay the mocks response, adds types, and tests.

@marcbachmann
Copy link
Collaborator

mock.onGet().withDelayInMs(1000).reply(status, data) already supports functionality for that (on v2.0.0 it's properly chainable).
There's no need to expose the internal function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants