UNPKG

762 BTypeScriptView Raw
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" />
8import type { TestResult } from '@jest/test-result';
9import { PatternPrompt, Prompt, ScrollOptions } from 'jest-watcher';
10export 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}