Closed princejoogie closed 2 years ago
I like it @princejoogie I'll take a look into it.
Can you document how to test our API client? @princejoogie
Can you document how to test our API client? @princejoogie
simply run yarn test
when will we have a dev account for gathertown? for the apikey
Can you document how to test our API client? @princejoogie
simply run
yarn test
when will we have a dev account for gathertown? for the apikey
Alright, I will create one and send it to you via Discord.
This PR includes the setup for parcel type-checking and the initial setup for automated tests with jest.
25
34
Automated tests
when running the tests, it also includes code coverage.
besides the results in the terminal, it also creates a
coverage/
folder in root which we can host in gh pages to visualize code coverage. it look like this:i've only included initial setup for jest and will complete all the unit tests when we have a dedicated gathertown account for testing as it will need an api key.
Type checking
here's a quick test of the type checking, manually removing a required function in the return statement.
and here's is parcel screaming at me XD
PS. about 14 files are generated by jest under
coverage/
folder which populates this PR, dont panic 😎