Skip to content

Home > @opengovsg/testcontainers > teardown

teardown() function ​

Stop and remove the given containers concurrently.

Signature:

typescript
teardown: (containers: {
    container: StartedTestContainer;
}[]) => Promise<void>

Parameters ​

ParameterTypeDescription
containers{ container: StartedTestContainer; }[]

Returns:

Promise<void>