mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix(site): e2e: print API backend calls (#12051)
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ export const beforeCoderTest = async (page: Page) => {
|
||||
|
||||
const shouldLogResponse =
|
||||
!response.url().endsWith("/api/v2/deployment/config") &&
|
||||
!response.url().endsWith("/api/v2/debug/health");
|
||||
!response.url().endsWith("/api/v2/debug/health?force=false");
|
||||
|
||||
let responseText = "";
|
||||
try {
|
||||
|
||||
@@ -30,20 +30,20 @@ class CoderReporter implements Reporter {
|
||||
}
|
||||
|
||||
onStdOut(chunk: string, test?: TestCase, _?: TestResult): void {
|
||||
for (const line of filteredServerLogLines(chunk)) {
|
||||
console.log(`[stdout] ${line}`);
|
||||
}
|
||||
if (!test) {
|
||||
for (const line of filteredServerLogLines(chunk)) {
|
||||
console.log(`[stdout] ${line}`);
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.testOutput.get(test.id)!.push([process.stdout, chunk]);
|
||||
}
|
||||
|
||||
onStdErr(chunk: string, test?: TestCase, _?: TestResult): void {
|
||||
for (const line of filteredServerLogLines(chunk)) {
|
||||
console.error(`[stderr] ${line}`);
|
||||
}
|
||||
if (!test) {
|
||||
for (const line of filteredServerLogLines(chunk)) {
|
||||
console.error(`[stderr] ${line}`);
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.testOutput.get(test.id)!.push([process.stderr, chunk]);
|
||||
|
||||
Reference in New Issue
Block a user