Skip to content

Add unit tests #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 17, 2019
Merged

Add unit tests #196

merged 4 commits into from
Sep 17, 2019

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Sep 10, 2019

This adds unit tests.

The tests are meant to be low maintenance thanks to snapshots testing. They only check the shape of the exported/JSON OpenAPI definition and make sure it has not changed. When it does change (i.e. new definitions added to swagger.yml), ava -u can be run to update the snapshots.

Those tests will ensure we are not introducing issues in the build/export setup.

@netlify
Copy link

netlify bot commented Sep 10, 2019

Deploy preview for open-api ready!

Built with commit aee9287

https://deploy-preview-196--open-api.netlify.com

@ehmicky ehmicky force-pushed the test/add-tests branch 2 times, most recently from 8c15861 to b0caafe Compare September 10, 2019 17:23
@ehmicky ehmicky merged commit c652b52 into master Sep 17, 2019
@ehmicky ehmicky deleted the test/add-tests branch September 17, 2019 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants