MCPcopy Create free account
hub / github.com/vercel/vercel / printOutput

Function printOutput

packages/cli/test/dev/utils.ts:116–132  ·  view source on GitHub ↗
(fixture: string, stdout: string, stderr: string)

Source from the content-addressed store, hash-verified

114}
115
116function printOutput(fixture: string, stdout: string, stderr: string) {
117 const lines = (
118 `\nOutput for "${fixture}"\n` +
119 `\n----- stdout -----\n` +
120 stdout +
121 `\n----- stderr -----\n` +
122 stderr
123 ).split('\n');
124
125 const getPrefix = (nr: number) => {
126 return nr === 0 ? '╭' : nr === lines.length - 1 ? '╰' : '│';
127 };
128
129 console.log(
130 lines.map((line, index) => ` ${getPrefix(index)} ${line}`).join('\n')
131 );
132}
133
134export function shouldSkip(name: string, versions: string) {
135 if (!satisfies(process.version, versions)) {

Callers 2

testFixtureFunction · 0.85
testFixtureStdioFunction · 0.85

Calls 4

getPrefixFunction · 0.85
splitMethod · 0.80
logMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected