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

Function printShortcutsHelp

packages/vitest/src/node/stdin.ts:27–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const cancelKeys = ['space', 'c', 'h', ...keys.map(key => key[0]).flat()]
26
27export function printShortcutsHelp(): void {
28 stdout().write(
29 `
30${c.bold(' Watch Usage')}
31${keys
32 .map(
33 i =>
34 c.dim(' press ')
35 + c.reset([i[0]].flat().map(c.bold).join(', '))
36 + c.dim(` to ${i[1]}`),
37 )
38 .join('\n')}
39`,
40 )
41}
42
43function* traverseFilteredTestNames(parentName: string, filter: RegExp, t: Task): Generator<FilterObject> {
44 if (isTestCase(t)) {

Callers 1

_keypressHandlerFunction · 0.85

Calls 3

stdoutFunction · 0.90
resetMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected