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

Difficulty rendering for Testing Library test #30

Open
jsphstls opened this issue Aug 16, 2022 · 2 comments
Open

Difficulty rendering for Testing Library test #30

jsphstls opened this issue Aug 16, 2022 · 2 comments

Comments

@jsphstls
Copy link

Describe the bug
I am unable to render any nodes for the purpose of automated testing.

To Reproduce
https://codesandbox.io/s/basic-example-forked-rx85dd?file=/src/App.test.js

Expected behavior
Nodes should eventually render yet no amount of delay or async trickery in the test causes them to appear.

Additional context
https://testing-library.com/docs/react-testing-library/intro/ is quite common though there are plenty of other options. I know this repo has loads of tests for the underlying functionality but I did not see any e2e test from which to adapt my own test.

Thank you for creating this package. The level of detail is super impressive.

@jaredLunde
Copy link
Owner

I'll have a look tomorrow if you haven't figured this out already

@jsphstls
Copy link
Author

Nothing new from me. My backup plan is to use Cypress though I still hope to have a test using only RTL and Jest.

While attempting the first test I did fiddle with act, useFakeTimers, and a few tricks around promises to no success.

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

No branches or pull requests

2 participants