isMounted icon indicating copy to clipboard operation
isMounted copied to clipboard

Volunteering to add test coverage

Open CodingItWrong opened this issue 4 years ago • 1 comments

If you'd like, I'd be happy to contribute a Jest test of this hook to the repo. Instead of pulling the dependency into a project, we just wrote our own analogous hook. And it was quite easy to add test coverage with React Hooks Testing Library

The functionality is so simple that I understand if you don't want to bother with a test. But maybe it'd help with future changes for new React APIs or improvements for rare edge cases.

In any case, if you'd like a PR to add that test, just let me know 👍

CodingItWrong avatar Jun 30 '21 20:06 CodingItWrong

@CodingItWrong Thanks a lot. That would be great 👍

jmlweb avatar Aug 20 '21 10:08 jmlweb