test: Add Playwright smoke spec for Vite dev-server boot (#29539)

This commit is contained in:
Csaba Tuncsik
2026-05-06 10:49:25 +02:00
committed by GitHub
parent 701f9a4627
commit d4e9705749
7 changed files with 219 additions and 6 deletions
+12 -1
View File
@@ -54,4 +54,15 @@ cd(dir);
const cmd = normalizeCommand(run);
echo(chalk.cyan(`$ Running (dir: ${dir}) ${cmd} ${args.join(' ')}`));
await $({ stdio: 'inherit' })`${cmd} ${args}`;
try {
await $({ stdio: 'inherit' })`${cmd} ${args}`;
} catch (err) {
// Forward signal-based exits silently (e.g. Playwright's globalTeardown
// SIGKILLs the n8n process, or the user Ctrl-C's `pnpm start`). Without
// this, zx logs an unhandled `_ProcessOutput` traceback as the parent
// is already shutting us down — pure noise.
if (err?.signal || err?.exitCode === 137 || err?.exitCode === 143) {
process.exit(err.exitCode ?? 0);
}
throw err;
}