mirror of
https://github.com/ajnart/homarr.git
synced 2026-05-07 06:07:00 +02:00
12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
|
|
import { GenericContainer, Wait } from "testcontainers";
|
||
|
|
|
||
|
|
export const createHomarrContainer = () => {
|
||
|
|
if (!process.env.CI) {
|
||
|
|
throw new Error("This test should only be run in CI or with a homarr image named 'homarr-e2e'");
|
||
|
|
}
|
||
|
|
|
||
|
|
return new GenericContainer("homarr-e2e")
|
||
|
|
.withExposedPorts(7575)
|
||
|
|
.withWaitStrategy(Wait.forHttp("/api/health/ready", 7575));
|
||
|
|
};
|