testcontainers-node
testcontainers-node copied to clipboard
Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
By setting this: ``` PG_DATA: /dev/shm/pgdata/data ``` We could use memfs, and then speed up the container. Other options and ideas for the test speed-ups: - https://marcopeg.com/how-to-run-postgres-for-testing-in-docker/ - https://gajus.com/blog/setting-up-postgre-sql-for-running-integration-tests I've...
Adds a `withBuildKit` option. With the option enabled, a build will be done using BuildKit - within a docker container. This should be relatively independent on the host system's BuildKit...
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.2 to 3.9.7. Release notes Sourced from mysql2's releases. v3.9.7 3.9.7 (2024-04-21) Bug Fixes security: sanitize timezone parameter value to prevent code injection - report by zhaoyudi...
**Expected Behaviour** https://github.com/testcontainers/testcontainers-node/blob/main/docs/features/wait-strategies.md#other-startup-strategies shows a snippet of code which demonstrates how custom wait strategies can be implemented. This code is not valid after [c97e2942f047814a5d80835402cf2fcf3d944913](https://github.com/testcontainers/testcontainers-node/commit/c97e2942f047814a5d80835402cf2fcf3d944913#diff-d52af72e6c542c7b3ea7021df76c11d879d094ccfe01f104e147b6e20b1f3782) introduced a constructor to `StartupCheckStrategy`, with...
**Expected Behaviour** I want to get a predictable port number and host, the problem seems to be in this file - https://github.com/testcontainers/testcontainers-node/blob/main/packages/testcontainers/src/utils/bound-ports.ts method - resolveHostPortBinding line - return hostPortBindings[0].hostPort; **Actual...
**Expected Behaviour** Couchbase module test should pass with Node 20x LTS version **Actual Behaviour** Couchbase module fails localy or in our pipeline running Node 20.x lts version **Steps to Reproduce**...
**Expected Behaviour** Having a Dockerfile containing build arguments, I expected them to be replaced when using `withBuildArgs()` on `GenericContainerBuilder` E.g. dockerfile for nodejs monorepos. ```ts const container = await GenericContainer.fromDockerfile()...
**Expected Behaviour** Should work fine :) **Actual Behaviour** Having [docker-credential-gcr](https://github.com/GoogleCloudPlatform/docker-credential-gcr) installed makes it not possible to start testcontainers. Problem is that running `docker-credential-gcr list` command returns exit code 1, which...
**Expected Behaviour** Postgres Container should start **Actual Behaviour** Postgres Container did not start **Testcontainer Logs** Error: Jest: Got error running globalSetup - C:\Users\carbo\Projects\twin-premium-api\Tests\Integration\setup.ts, reason: Could not find a working container...