How to use the jest-watcher.KEYS.ENTER function in jest-watcher

To help you get started, we’ve selected a few jest-watcher examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebook / jest / packages / jest-core / src / lib / handle_deprecation_warnings.ts View on Github external
stdin.on('data', (key: string) => {
        if (key === KEYS.ENTER) {
          resolve();
        } else if (
          [KEYS.ESCAPE, KEYS.CONTROL_C, KEYS.CONTROL_D].indexOf(key) !== -1
        ) {
          reject();
        }
      });
    } else {

jest-watcher

Delightful JavaScript Testing.

MIT
Latest version published 1 year ago

Package Health Score

88 / 100
Full package analysis

Similar packages