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

feat(cli): add --delay/-d option #1513

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nashashibi
Copy link

Adds an optional --delay (-d short) option to the CLI to delay responses.

Changes:

  • added a global middleware in app.js with a setTimeout that invokes next after the specified delay duration.
  • updated the executable bin logic to accept the '--delay' flag and pass it down to the createApp function.

@lucasdemoraesc
Copy link

Any chance of this being released soon? This is very important while working with server-side requests.

Thanks for the work @nashashibi

Copy link

@luthfianum luthfianum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! This is an important feature for testing. Thank you for handling this so well. 👍

@aadrian
Copy link

aadrian commented Sep 19, 2024

@typicode any chance merging this ?

Thank you.

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.

5 participants