Kill mock backend if frontend failed

This commit is contained in:
Exidex 2024-05-30 22:03:30 +02:00
parent d7be24cb1f
commit 7ecd12985e

View file

@ -159,7 +159,8 @@ async function runScreenshotGen(expectedPlugin: string | undefined, expectedEntr
});
if (frontendReturn.status !== 0) {
throw new Error(`Unable to run frontend, status: ${JSON.stringify(frontendReturn)}`);
const killed = mockBackendProcess.kill();
throw new Error(`Unable to run frontend, mock backend killed: ${killed}, status: ${JSON.stringify(frontendReturn)}`);
}
console.log("Frontend exited")