TestNamePatternPrompt.d.ts 803 B

123456789101112131415161718
  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 { PatternPrompt, Prompt, ScrollOptions } from 'jest-watcher';
  9. import { TestResult } from '@jest/test-result';
  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): string[];
  16. updateCachedTestResults(testResults?: Array<TestResult>): void;
  17. }
  18. //# sourceMappingURL=TestNamePatternPrompt.d.ts.map