Wondering what’s next for npm?Check out our public roadmap! »

    jest-watch-typeahead

    0.6.3 • Public • Published

    Build Status npm version

    jest-watch-typeahead

    Filter your tests by file name or test name

    watch

    Usage

    Install

    Install jest(it needs Jest 26+) 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

    Keywords

    none

    Install

    npm i jest-watch-typeahead

    DownloadsWeekly Downloads

    3,073,720

    Version

    0.6.3

    License

    MIT

    Unpacked Size

    38.8 kB

    Total Files

    19

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar