TestNamePatternPrompt.d.ts 762 B

1234567891011121314151617
  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 { TestResult } from '@jest/test-result';
  9. import { PatternPrompt, Prompt, ScrollOptions } from 'jest-watcher';
  10. export default class TestNamePatternPrompt extends PatternPrompt {
  11. _cachedTestResults: Array<TestResult>;
  12. constructor(pipe: NodeJS.WritableStream, prompt: Prompt);
  13. _onChange(pattern: string, options: ScrollOptions): void;
  14. _printPrompt(pattern: string): void;
  15. _getMatchedTests(pattern: string): Array<string>;
  16. updateCachedTestResults(testResults?: Array<TestResult>): void;
  17. }