tangled
alpha
login
or
join now
erika.florist
/
maudit
6
fork
atom
Rust library to generate static websites
6
fork
atom
overview
issues
pulls
1
pipelines
fix: longer timeout perhaps
Princesseuh
1 month ago
ab1b3d98
f6141d36
+15
-9
1 changed file
expand all
collapse all
unified
split
e2e
tests
test-utils.ts
+15
-9
e2e/tests/test-utils.ts
···
64
64
65
65
const outputPromise = new Promise<number>((resolve, reject) => {
66
66
const timeout = setTimeout(() => {
67
67
-
reject(new Error("Dev server did not start within 30 seconds"));
68
68
-
}, 30000);
67
67
+
reject(new Error("Dev server did not start within 60 seconds"));
68
68
+
}, 60000);
69
69
70
70
childProcess.stdout?.on("data", (data: Buffer) => {
71
71
const output = data.toString();
72
72
// Capture all stdout logs
73
73
-
output.split("\n").filter(line => line.trim()).forEach(line => {
74
74
-
capturedLogs.push(line);
75
75
-
});
73
73
+
output
74
74
+
.split("\n")
75
75
+
.filter((line) => line.trim())
76
76
+
.forEach((line) => {
77
77
+
capturedLogs.push(line);
78
78
+
});
76
79
77
80
// Look for "waiting for requests" to know server is ready
78
81
if (output.includes("waiting for requests")) {
···
86
89
childProcess.stderr?.on("data", (data: Buffer) => {
87
90
const output = data.toString();
88
91
// Capture all stderr logs
89
89
-
output.split("\n").filter(line => line.trim()).forEach(line => {
90
90
-
capturedLogs.push(line);
91
91
-
});
92
92
-
92
92
+
output
93
93
+
.split("\n")
94
94
+
.filter((line) => line.trim())
95
95
+
.forEach((line) => {
96
96
+
capturedLogs.push(line);
97
97
+
});
98
98
+
93
99
// Only log errors to console, not all stderr output
94
100
if (output.toLowerCase().includes("error")) {
95
101
console.error(`[maudit dev] ${output}`);