mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
* Add e2e testing for frontend * Hopefully working CI/CD for playwright * Fix run name * Trying to fix the CI/CD stuff * Try this again, although Vite apparently has playwright? * Fix vitetest * Add registration tests * Safer kill of testing dependencies * These might not last. * feat: Add iPhone and Android device testing * fix: Minor fixes, set registration to "fixme" as it fails frequently for some reason. * fix: Make sure the OS dependencies get installed * fix: For now remove mobile, they seem to be very hit or miss. * Use sharding based testing * Fix some minor mess ups * Forgot PNPM for the merge
17 lines
485 B
TypeScript
17 lines
485 B
TypeScript
import { exec } from "child_process";
|
|
|
|
function globalTeardown() {
|
|
if (process.env.TEST_SHUTDOWN_API_SERVER) {
|
|
const pc = exec("pkill -SIGTERM api"); // Kill background API process
|
|
const fr = exec("pkill -SIGTERM task"); // Kill background Frontend process
|
|
pc.stdout?.on("data", (data: void) => {
|
|
console.log(`stdout: ${data}`);
|
|
});
|
|
fr.stdout?.on("data", (data: void) => {
|
|
console.log(`stdout: ${data}`);
|
|
});
|
|
}
|
|
}
|
|
|
|
export default globalTeardown;
|