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

Support react-test-renderer #2467

Closed
jackyef opened this issue Apr 12, 2020 · 3 comments
Closed

Support react-test-renderer #2467

jackyef opened this issue Apr 12, 2020 · 3 comments

Comments

@jackyef
Copy link

jackyef commented Apr 12, 2020

Continuing this issue from preact-compat repo.

Currently, some testing utilities libraries rely on react-test-renderer, for example @testing-library/react-hooks. This library is used to test React hooks in a React application. Having an equivalent of react-test-renderer would help in migrating an existing React app to Preact.

@IgnusG
Copy link

IgnusG commented May 7, 2020

I had the same issue for testing hooks so I ported this library https://github.com/andrew-w-ross/test-react-hooks to preact. You can find it here https://www.npmjs.com/package/test-preact-hooks

It's still very much alpha and might break like glass so please use at your own risk and leave an issue report if you run into problems.

@CarsonMcKinstry
Copy link

CarsonMcKinstry commented May 18, 2020

Hello!

We had the same issue as well. So we ported the official @testing-library/react-hooks package :D

https://github.com/trivago/preact-hooks-testing-library

Would love some feedback as well. It should be mostly at feature parity with the react hooks version, but that isn't 100% guaranteed.

@developit
Copy link
Member

I wonder if we can close this issue out now that @testing-library/preact-hooks exists?

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

No branches or pull requests

5 participants