mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +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) {
|
||||
console.error(`Error reading report from ${reportDir}:`, error)
|
||||
process.stderr.write(`Error reading report from ${reportDir}: ${error}\n`)
|
||||
}
|
||||
|
||||
return counts
|
||||
@@ -368,7 +368,7 @@ function extractTestCounts(reportDir: string): TestCounts {
|
||||
const reportDir = process.argv[2]
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user