Skip to content

initDockerSuite

initDockerSuite(srcPath, options?): DockerSuiteContext

Defined in: docker/init-docker-suite.ts:72

Initializes a Docker test suite: builds the image at srcPath once, runs a container per test, and removes both afterwards.

Every name it generates carries a random per-suite id, so two suites running concurrently — including two runs of the same file — never share an image tag or a container name, and neither one’s cleanup can remove the other’s.

string

The build context to build the suite’s image from.

InitDockerSuiteOptions

Options for the suite.

DockerSuiteContext

The names the suite generated, for tests that need to address them.