MCPcopy
hub / github.com/jestjs/jest / printSuite

Function printSuite

packages/jest-core/src/runJest.ts:47–57  ·  view source on GitHub ↗
(suite: Suite, indent: number)

Source from the content-addressed store, hash-verified

45 outputStream: NodeJS.WritableStream,
46): void => {
47 const printSuite = (suite: Suite, indent: number): void => {
48 if (suite.title) {
49 outputStream.write(`${' '.repeat(indent)}${suite.title}\n`);
50 }
51 for (const t of suite.tests) {
52 outputStream.write(`${' '.repeat(indent + 1)}${t.title}\n`);
53 }
54 for (const child of suite.suites) {
55 printSuite(child, indent + 1);
56 }
57 };
58 const root = VerboseReporter.groupTestsBySuites(testResults);
59 printSuite(root, 0);
60};

Callers 1

printCollectedTestTreeFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected