/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/jest-core/src/TestPathPatternPrompt.ts
31 строка
847 B
Simen Bekkhus
chore: use consistent type imports (#14662)
30 окт 2023, 15:37
Не верифицирован
30 окт 2023, 15:37
5ce83ac
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { PatternPrompt, type Prompt, type ScrollOptions, printPatternCaret, printRestoredPatternCaret, } from 'jest-watcher'; export default class TestPathPatternPrompt extends PatternPrompt { constructor(pipe: NodeJS.WritableStream, prompt: Prompt) { super(pipe, prompt, 'filenames'); } protected override _onChange(pattern: string, options: ScrollOptions): void { super._onChange(pattern, options); this._printPrompt(pattern); } private _printPrompt(pattern: string): void { const pipe = this._pipe; printPatternCaret(pattern, pipe); printRestoredPatternCaret(pattern, this._currentUsageRows, pipe); } }