Rust library to generate static websites

fix: longer timeout perhaps

+15 -9
+15 -9
e2e/tests/test-utils.ts
··· 64 64 65 65 const outputPromise = new Promise<number>((resolve, reject) => { 66 66 const timeout = setTimeout(() => { 67 - reject(new Error("Dev server did not start within 30 seconds")); 68 - }, 30000); 67 + reject(new Error("Dev server did not start within 60 seconds")); 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 - output.split("\n").filter(line => line.trim()).forEach(line => { 74 - capturedLogs.push(line); 75 - }); 73 + output 74 + .split("\n") 75 + .filter((line) => line.trim()) 76 + .forEach((line) => { 77 + capturedLogs.push(line); 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 - output.split("\n").filter(line => line.trim()).forEach(line => { 90 - capturedLogs.push(line); 91 - }); 92 - 92 + output 93 + .split("\n") 94 + .filter((line) => line.trim()) 95 + .forEach((line) => { 96 + capturedLogs.push(line); 97 + }); 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}`);