MCPcopy
hub / github.com/SBoudrias/Inquirer.js / type

Method type

packages/testing/src/screen.ts:159–164  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

157 }
158
159 type(text: string): void {
160 this.#input.write(text);
161 for (const char of text) {
162 this.#input.emit('keypress', null, { name: char });
163 }
164 }
165
166 clear(): void {
167 // Recreate input stream to ensure clean state

Callers 15

confirm.test.tsFile · 0.80
password.test.tsFile · 0.80
expand.test.tsFile · 0.80
expand.test.tsFile · 0.80
editor.test.tsFile · 0.80
input.test.tsFile · 0.80
password.test.tsFile · 0.80
rawlist.test.tsFile · 0.80
number.test.tsFile · 0.80
search.test.tsFile · 0.80
confirm.test.tsFile · 0.80
search.test.tsFile · 0.80

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected