techstartucalgary / lifeline

A much needed lifeline to help students never miss a deadline!
https://lifeline.techstartucalgary.com
MIT License
4 stars 0 forks source link

Unit Tests for Frontend Components #138

Open tim-macphail opened 1 year ago

tim-macphail commented 1 year ago

Not sure how we'll do this yet, I'm inexperienced in front end testing. I think libraries like Jest might be the answer.

These tests should prevent breaking changes from being introduced into main. They will be triggerable from a script defined in package.json and be integrated into the workflow ci-client.yaml.

For example, checking that the <EditAssessment /> component can actually edit an assessment, and that all it's fields fill properly.

cloudyyoung commented 1 year ago

Jest snapshot testing seems to be the way