-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
feat: support runtime delay functions #1281
Conversation
Thank you for made this PR. I'll review it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your great work. I have made some comments, please check them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@melloware |
Status
READY
Description
Add support for generating mock delay times at runtime.
Fixes: #1279
Todos
Steps to Test or Reproduce
yarn build
.mock: true,
with:yarn generate-api
.src/api/endpoints/petstoreFromFileSpecWithTransformer.msw.ts
.await delay((() => (process.env.NODE_ENV === 'test' ? 10 : 1e3))());