MCPcopy
hub / github.com/vitest-dev/vitest / write

Method write

test/test-utils/cli.ts:48–57  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

46 }
47
48 write(data: string) {
49 this.resetOutput()
50
51 if (((this.stdin as Readable).readable)) {
52 this.stdin.emit('data', data)
53 }
54 else if (isWritable(this.stdin)) {
55 this.stdin.write(data)
56 }
57 }
58
59 resetOutput() {
60 this.stdout = ''

Callers 15

writeFunction · 0.45
init.test.tsFile · 0.45
stdin.test.tsFile · 0.45
workspaces.test.tsFile · 0.45
default.test.tsFile · 0.45
neFunction · 0.45
eeFunction · 0.45
ZFunction · 0.45
neFunction · 0.45

Calls 2

resetOutputMethod · 0.95
isWritableFunction · 0.85

Tested by

no test coverage detected