UNPKG

969 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', {
4 value: true
5});
6exports.default = void 0;
7function _jestWatcher() {
8 const data = require('jest-watcher');
9 _jestWatcher = function () {
10 return data;
11 };
12 return data;
13}
14/**
15 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
16 *
17 * This source code is licensed under the MIT license found in the
18 * LICENSE file in the root directory of this source tree.
19 */
20
21class TestNamePatternPrompt extends _jestWatcher().PatternPrompt {
22 constructor(pipe, prompt) {
23 super(pipe, prompt, 'tests');
24 }
25 _onChange(pattern, options) {
26 super._onChange(pattern, options);
27 this._printPrompt(pattern);
28 }
29 _printPrompt(pattern) {
30 const pipe = this._pipe;
31 (0, _jestWatcher().printPatternCaret)(pattern, pipe);
32 (0, _jestWatcher().printRestoredPatternCaret)(
33 pattern,
34 this._currentUsageRows,
35 pipe
36 );
37 }
38}
39exports.default = TestNamePatternPrompt;