mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-01 04:55:40 +00:00
bd321af29f
* new PR tasks * add homebox to know words * formatting * bump deps * generate db models * ts errors * drop id * fix accessor * drop unused time field * change CI * add expected error * add type check * resolve serveral type errors * hoise in CI
20 lines
488 B
TypeScript
20 lines
488 B
TypeScript
import { exec } from "child_process";
|
|
import * as config from "./config";
|
|
|
|
export const setup = () => {
|
|
console.log("Starting Client Tests");
|
|
console.log({
|
|
PORT: config.PORT,
|
|
HOST: config.HOST,
|
|
BASE_URL: config.BASE_URL,
|
|
});
|
|
};
|
|
|
|
export const teardown = () => {
|
|
if (process.env.TEST_SHUTDOWN_API_SERVER) {
|
|
const pc = exec("pkill -SIGTERM api"); // Kill background API process
|
|
pc.stdout?.on("data", data => {
|
|
console.log(`stdout: ${data}`);
|
|
});
|
|
}
|
|
};
|