documentationgood first issuehacktoberfesthacktoberfest-acceptedhtmljavascript
Repository metrics
- Stars
- (6 stars)
- PR merge metrics
- (PR metrics pending)
Description
There are no automated tests. Add Jest for unit testing JavaScript files.
How to do it:
-
Install Jest:
npm install --save-dev jest -
Add a test script to
package.json:"scripts": { "test": "jest" } -
Create a simple test in
extension/popup.test.js(you will need to mock DOM and chrome APIs with Jest's jsdom and manual mocks).