Testing frameworks allow you to catch errors in your code before they are added to the repository. This pull request does the following:
Sets up Jest configuration and allows tests to be made in the __tests__ directory
Runs jest on a pre-push Husky hook so that all tests pass before pushing on Git
Caveat: chrome is not defined locally without a chrome runtime or web server for the extension to operate on; therefore, useful testing will require additional setup
Testing frameworks allow you to catch errors in your code before they are added to the repository. This pull request does the following:
__tests__
directoryjest
on apre-push
Husky hook so that all tests pass before pushing on GitCaveat:
chrome
is not defined locally without a chrome runtime or web server for the extension to operate on; therefore, useful testing will require additional setup