After testing the outputs, let’s test the inputs

Tony Vu
Nov 19, 2020

--

Hi forks, I’m back for another blog post. This time it is about release 0.3. We need to continue contributing to open source projects and learn from the mistakes we might have made during release 0.2.

I decided to continue exploring testing approaches. In release 0.2, I did REST api route testing and frontend component testing. In release 0.3, I decided to do JSON body validation/testing for the first PR. As the issue has suggested, I need to use Ajv, a well-known library for JSON validation. It took me quite sometimes to learn how to use it. And obviously many change requests from Dave. Here are a few long comment sections that we have on the PR…

He saw even the smallest thing. Very good pair of eyes professor! Here I made a typo…

I really appreciate Dave being strict on what he expects from us because that would help us a lot in becoming good developers in the future. Best thing about this PR is that it would get removed 3 days after merging due to our decision to use Express-Validator for everything.

Thank you for reading.

Tony Vu

--

--

No responses yet