arya2004/cmt-autofill

Set Up a Testing Framework

オープン

#13 opened on 2025/10/02

 (1 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (11 件のフォーク)auto 404
documentationgood first issuehacktoberfesthacktoberfest-acceptedhtmljavascript

Repository metrics

Stars
 (6 個のスター)
PR merge metrics
 (PR metrics pending)

説明

There are no automated tests. Add Jest for unit testing JavaScript files.

How to do it:

  1. Install Jest:

    npm install --save-dev jest
    
  2. Add a test script to package.json:

    "scripts": {
      "test": "jest"
    }
    
  3. 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).

コントリビューターガイド