Skip to content

An example project showing how to use Testcontainers in Node.js for Integration- & Browser-Tests

License

Notifications You must be signed in to change notification settings

simonberner/testcontainers-nodejs-example

Repository files navigation

Testcontainers Node.js Example

Testcontainers nodejs example License: MIT

🚧 Running playwright browser tests in a testcontainer is still work in progress! 🚧
(If you know how this works, please open a PR, thanks!)

About

Containers

For running containers, we have the following options:

Testcontainers Cloud

GitHub Actions

This project contains a GitHub Action which runs the Jest-Tests (Integration-Tests) in a Testcontainer when pushing/merging to main.

Resources

Playwright

It is recommended to use Docker image version that matches Playwright version. If the Playwright version in your Docker image does not match the version in your project/tests, Playwright will be unable to locate browser executables.

Postgres

Credits