jest-watch-typeahead

Jest watch plugin for filtering test by file name or test name

  • 所有者: jest-community/jest-watch-typeahead
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Build Status npm version

watch

Usage

Install

Install jest(it needs Jest 23+) and jest-watch-typeahead

yarn add --dev jest jest-watch-typeahead

# or with NPM

npm install --save-dev jest jest-watch-typeahead

Add it to your Jest config

In your package.json

{
  "jest": {
    "watchPlugins": [
      "jest-watch-typeahead/filename",
      "jest-watch-typeahead/testname"
    ]
  }
}

Or in jest.config.js

module.exports = {
  watchPlugins: [
    'jest-watch-typeahead/filename',
    'jest-watch-typeahead/testname',
  ],
};

Configuring your key and prompt name

module.exports = {
  watchPlugins: [
    [
      'jest-watch-typeahead/filename',
      {
        key: 'k',
        prompt: 'do something with my custom prompt',
      },
    ],
  ],
};

Run Jest in watch mode

yarn jest --watch

主要指標

概覽
名稱與所有者jest-community/jest-watch-typeahead
主編程語言TypeScript
編程語言JavaScript (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2018-03-24 03:14:53
推送於2025-07-14 07:05:58
最后一次提交
發布數32
最新版本名稱v3.0.1 (發布於 )
第一版名稱v0.0.1 (發布於 2018-05-27 09:40:33)
用户参与
星數411
關注者數2
派生數17
提交數398
已啟用問題?
問題數31
打開的問題數9
拉請求數310
打開的拉請求數2
關閉的拉請求數43
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?