mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
fix: replace console.error with process.stderr.write to resolve eslint(no-console) errors
This commit is contained in:
@@ -358,7 +358,7 @@ function extractTestCounts(reportDir: string): TestCounts {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Error reading report from ${reportDir}:`, error)
|
process.stderr.write(`Error reading report from ${reportDir}: ${error}\n`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return counts
|
return counts
|
||||||
@@ -368,7 +368,7 @@ function extractTestCounts(reportDir: string): TestCounts {
|
|||||||
const reportDir = process.argv[2]
|
const reportDir = process.argv[2]
|
||||||
|
|
||||||
if (!reportDir) {
|
if (!reportDir) {
|
||||||
console.error('Usage: extract-playwright-counts.ts <report-directory>')
|
process.stderr.write('Usage: extract-playwright-counts.ts <report-directory>\n')
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user