gaearon / ama

Ask me anything!
222 stars 5 forks source link

react-testing-library Integration Tests #156

Closed bishwenduk029 closed 3 years ago

bishwenduk029 commented 6 years ago

Hi Dan,

I am working on Integration Tests POC for one of my projects and was hoping if you could please take out some time to help/guide me with the same.

We have not decided yet on what to use with Jest. But I am doing a POC and writing these test cases usinf react-testling-library. But with all cases I am running in to a timeout issue

"Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout."

I have created gists for a small component

Component https://gist.github.com/bishwenduk029/a64aef3ac60b240039760697144c9851

Test Case: https://gist.github.com/bishwenduk029/2d317e0482bab9d952697111e64572b1

If possible can you please have a look at it, and let me know If I am doing something wrong. Any suggestions would be great.

Thanks & Regards

bishwenduk029 commented 3 years ago

Sorry my bad. Thank you :).