Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jrmykolyn
Copy link
Contributor

Overview:

This pull request introduces the following changes:

  • Adds the Jest testing library.
  • Adds initial test for various utility functions.

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).

@jrmykolyn
Copy link
Contributor Author

CC: @jonasW3F for review. 🙏

@jonasW3F
Copy link
Collaborator

Hi @jrmykolyn - Thanks! I will take a look as soon as I find the time

@jrmykolyn
Copy link
Contributor Author

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. 👍

Copy link
Collaborator

@joepetrowski joepetrowski left a 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?

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.

3 participants