-
Notifications
You must be signed in to change notification settings - Fork 33
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
chore: Add Jest testing lib; add utils/ tests #41
base: master
Are you sure you want to change the base?
Conversation
e913039
to
8e4b7fa
Compare
CC: @jonasW3F for review. 🙏 |
Hi @jrmykolyn - Thanks! I will take a look as soon as I find the time |
Great, thanks a lot! Also, if there's anything I can do to make this (or future) pull requests easier to review, please let me know. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very useful, thanks! Can you merge master?
Overview:
This pull request introduces the following changes:
Rationale:
Adding support for unit-level tests may increase the likelihood of additional contributions. It will also set a precedent in terms of what is expected for future contributions.
I have include a small number of tests for a small number of utility functions. If the pull request is accepted and merged then I'm happy to increase the test coverage. If not then only a small amount of time will be lost.
Why Jest?:
Jest is an widely-used and well-supported unit testing framework for JavaScript and TypeScript projects. The current number of monthly downloads via
npm
is > 15,000,000. This is significantly more than other popular unit testing frameworks, such as Mocha (~6,000,000), Jasmine (~2,000,000), and Ava (~200,000).