Files
homebox/frontend/test/playwright.teardown.ts
Matt Kilgore 177b7344f8 E2E Playwright Testing (#466)
* 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
2025-04-19 13:09:14 -04:00

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;