fix: error propagation for tests
This commit is contained in:
parent
d03c72bc75
commit
65416c7156
|
@ -164,9 +164,7 @@ export async function startServer({
|
||||||
process.stderr.on('drain', resolve);
|
process.stderr.on('drain', resolve);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-console
|
throw new Error('\nserver process exited unexpectedly\n');
|
||||||
console.error('\nserver process exited unexpectedly\n');
|
|
||||||
process.exit(code);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user