mirror of
https://github.com/n8n-io/n8n.git
synced 2026-08-29 01:39:24 +08:00
test: Add Playwright smoke spec for Vite dev-server boot (#29539)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user