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

Update delay document and add test confirming the delay behavior #1175

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

bsheps
Copy link
Contributor

@bsheps bsheps commented Oct 31, 2023

#1174

What:
This fixes a documentation error and adds a test to verify delay's behavior.
#1174

Why:

Correct documentation and quality tests make the library easier to use and adopt. The delay option is an important tool for helping write stable tests against asynchronous code.

How:

Comment adjustment. Straight forward test case proving the delay works as described.

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

Thanks for taking the time to review the change. Any feedback is appreciated.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 31, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Member

@ph-fritsche ph-fritsche left a comment

Choose a reason for hiding this comment

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

Thanks for contributing to this library.

tests/keyboard/index.ts Outdated Show resolved Hide resolved
@ph-fritsche ph-fritsche merged commit 2edf14d into testing-library:main Jan 21, 2025
3 checks passed
Copy link

🎉 This PR is included in version 14.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

In options, delay value is incorrectly documented as seconds (should be milliseconds)
2 participants