giorgosart / react-easy-edit

Inline editing library for React
https://giorgosart.gitbook.io/react-easy-edit/
MIT License
251 stars 45 forks source link

Improve unit test coverage: cover `onCheckboxChange` function #163

Closed giorgosart closed 7 months ago

giorgosart commented 1 year ago

image

To run test with coverage, run yarn run coverage and locate the coverage report under `project root folder/coverage/lcov-report/index.html

TandinDev commented 1 year ago

Can I take over this issue?

giorgosart commented 1 year ago

@TandinDev I'll assign this to you. Just an FYI, this method was covered previously using Jest and Enzyme but ever since I ve updated to React 18 it stopped working. You will need to use react testing library

TandinDev commented 1 year ago

@giorgosart I couldn't make it work. I tried but I couldn't figure out the issue.

giorgosart commented 1 year ago

@TandinDev did you try writting the test using React testing library rather than jest?