Skip to content

Home > @opengovsg/testcontainers > WaitStrategy

WaitStrategy type ​

Wait strategy applied before a container is considered ready. Mirrors the three testcontainers strategies confetti relied on; timeout is the startup timeout in milliseconds (default 60000).

Signature:

typescript
export type WaitStrategy = {
    type: 'PORT';
    timeout?: number;
} | {
    type: 'LOG';
    message: string;
    times?: number;
    timeout?: number;
} | {
    type: 'HEALTHCHECK';
    timeout?: number;
};