How to use the jest-watcher.KEYS.ESCAPE 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 7 months ago

Package Health Score

93 / 100
Full package analysis

Similar packages