Testcontainers Node Pitfalls

Use when Node or TypeScript tests start real services in containers with Testcontainers for Node (GenericContainer and its modules): reading the mapped host port and host instead of hard-coding them, choosing a wait strategy and a startup timeout so tests do not begin before the service is ready, copying files in instead of bind mounts, container names and networks, stopping, removal and the cleanup container, container reuse and the state it leaks, pull policy, and rootless or remote runtimes.

techmefr Updated

File contents

techmefr/mentis commit b81ed39071

Frequently asked questions

npx get-skill add techmefr/testcontainers-node-pitfalls