Skip to content

Commit 4e7b208

Browse files
authored
fix(site): e2e: print API backend calls (coder#12051)
1 parent 1abe0cf commit 4e7b208

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

site/e2e/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const beforeCoderTest = async (page: Page) => {
2323

2424
const shouldLogResponse =
2525
!response.url().endsWith("/api/v2/deployment/config") &&
26-
!response.url().endsWith("/api/v2/debug/health");
26+
!response.url().endsWith("/api/v2/debug/health?force=false");
2727

2828
let responseText = "";
2929
try {

site/e2e/reporter.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ class CoderReporter implements Reporter {
3030
}
3131

3232
onStdOut(chunk: string, test?: TestCase, _?: TestResult): void {
33+
for (const line of filteredServerLogLines(chunk)) {
34+
console.log(`[stdout] ${line}`);
35+
}
3336
if (!test) {
34-
for (const line of filteredServerLogLines(chunk)) {
35-
console.log(`[stdout] ${line}`);
36-
}
3737
return;
3838
}
3939
this.testOutput.get(test.id)!.push([process.stdout, chunk]);
4040
}
4141

4242
onStdErr(chunk: string, test?: TestCase, _?: TestResult): void {
43+
for (const line of filteredServerLogLines(chunk)) {
44+
console.error(`[stderr] ${line}`);
45+
}
4346
if (!test) {
44-
for (const line of filteredServerLogLines(chunk)) {
45-
console.error(`[stderr] ${line}`);
46-
}
4747
return;
4848
}
4949
this.testOutput.get(test.id)!.push([process.stderr, chunk]);

0 commit comments

Comments
 (0)