OpenSourceDevs icon indicating copy to clipboard operation
OpenSourceDevs copied to clipboard

Add unit tests for components

Open MightyJoeW opened this issue 4 years ago • 4 comments

Add unit tests for components (preferably with Jest and React Testing Library)

MightyJoeW avatar Oct 06 '21 12:10 MightyJoeW

@MightyJoeW I would like to take this up. Please let me know about the folder structure or conventions that you may want to follow.

Thanks!

pavittarx avatar Oct 07 '21 06:10 pavittarx

Thanks @pavittarx ! I'm open to whichever approach you'd like to take.

Typically, I'd create a folder for each component for the jsx file, the scss file, and the test file, but this is a bare-bones project. I'd be okay with a separate tests folder to house all of the tests. Up to you!

MightyJoeW avatar Oct 07 '21 12:10 MightyJoeW

@MightyJoeW can I take this up and add tests for the remaining components?

wsameer avatar Oct 14 '21 14:10 wsameer

@wsameer Yes! It would be great to continue adding test coverage for the project.

MightyJoeW avatar Oct 15 '21 13:10 MightyJoeW