ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Add Jest Snapshot Testing for Frontend Components

Open its-me-abhishek opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. There is currently no automated way to detect unintended changes in the UI. Even small updates can unintentionally break components, but we have no regression testing in place.

Describe the solution you'd like Add Jest snapshot tests for key React components (task list, task item, buttons, modals). This will allow detecting visual changes automatically when running tests.

Describe alternatives you've considered

  • Manual visual QA: time-consuming and error-prone.
  • Full end-to-end visual regression (more setup-heavy).

Additional context Focus on core components first, then expand to secondary UI parts. Use @testing-library/react with Jest.

its-me-abhishek avatar Nov 08 '25 17:11 its-me-abhishek

Hello @its-me-abhishek , I interested in completing this task. I am familiar with jest unit test and render test already. I would love to develop snapshot testing skill with this task. This task will be completed in around a week. Does it sound good to you ?

AntoineDeveloppeur avatar Nov 09 '25 10:11 AntoineDeveloppeur

sure! have assigned this to you!

its-me-abhishek avatar Nov 09 '25 13:11 its-me-abhishek