fix(site): e2e: print API backend calls (#12051)

This commit is contained in:
Marcin Tojek
2024-02-07 15:50:07 +01:00
committed by GitHub
parent 1abe0cfa1a
commit 4e7b208068
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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 {
+6 -6
View File
@@ -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]);