TestNamePattern.d.ts 785 B

123456789101112131415161718192021
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. /// <reference types="node" />
  8. import type { Config } from '@jest/types';
  9. import { BaseWatchPlugin, Prompt, UpdateConfigCallback, UsageData } from 'jest-watcher';
  10. declare class TestNamePatternPlugin extends BaseWatchPlugin {
  11. _prompt: Prompt;
  12. isInternal: true;
  13. constructor(options: {
  14. stdin: NodeJS.ReadStream;
  15. stdout: NodeJS.WriteStream;
  16. });
  17. getUsageInfo(): UsageData;
  18. onKey(key: string): void;
  19. run(globalConfig: Config.GlobalConfig, updateConfigAndRun: UpdateConfigCallback): Promise<void>;
  20. }
  21. export default TestNamePatternPlugin;