documentationgood first issuehacktoberfesthacktoberfest-acceptedhtmljavascript
仓库指标
- 星标
- (6 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
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).