How to use the jest-watcher.Prompt 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 jest-community / jest-watch-typeahead / src / test_name_plugin / plugin.js View on Github external
constructor({
    stdin,
    stdout,
    config = {},
  }: {
    stdin: stream$Readable | tty$ReadStream,
    stdout: stream$Writable | tty$WriteStream,
    config: PluginConfig,
  }) {
    this._stdin = stdin;
    this._stdout = stdout;
    this._prompt = new Prompt();
    this._testResults = [];
    this._usageInfo = {
      key: config.key || 't',
      prompt: config.prompt || 'filter by a test name regex pattern',
    };
  }
github jest-community / jest-watch-typeahead / src / file_name_plugin / plugin.js View on Github external
constructor({
    stdin,
    stdout,
    config = {},
  }: {
    stdin: stream$Readable | tty$ReadStream,
    stdout: stream$Writable | tty$WriteStream,
    config: PluginConfig,
  }) {
    this._stdin = stdin;
    this._stdout = stdout;
    this._prompt = new Prompt();
    this._projects = [];
    this._usageInfo = {
      key: config.key || 'p',
      prompt: config.prompt || 'filter by a filename regex pattern',
    };
  }

jest-watcher

Delightful JavaScript Testing.

MIT
Latest version published 1 year ago

Package Health Score

88 / 100
Full package analysis

Similar packages