{"id":15127724,"url":"https://github.com/simonberner/testcontainers-nodejs-example","last_synced_at":"2025-06-25T09:33:44.170Z","repository":{"id":254982549,"uuid":"847797063","full_name":"simonberner/testcontainers-nodejs-example","owner":"simonberner","description":"An example project showing how to use Testcontainers in Node.js for Integration- \u0026 Browser-Tests","archived":false,"fork":false,"pushed_at":"2025-04-10T14:53:45.000Z","size":535,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T16:04:20.376Z","etag":null,"topics":["cloud-native-testing","docker-container","docker-image","integration-testing","postgres-container","testcontainers"],"latest_commit_sha":null,"homepage":"https://testcontainers.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonberner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T15:06:35.000Z","updated_at":"2025-04-10T14:53:45.000Z","dependencies_parsed_at":"2024-08-27T10:24:04.844Z","dependency_job_id":"8dfffab1-9053-458e-bea3-5daf4a9d9b68","html_url":"https://github.com/simonberner/testcontainers-nodejs-example","commit_stats":null,"previous_names":["simonberner/testcontainers-nodejs-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonberner/testcontainers-nodejs-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Ftestcontainers-nodejs-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Ftestcontainers-nodejs-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Ftestcontainers-nodejs-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Ftestcontainers-nodejs-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonberner","download_url":"https://codeload.github.com/simonberner/testcontainers-nodejs-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Ftestcontainers-nodejs-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261844782,"owners_count":23218432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-native-testing","docker-container","docker-image","integration-testing","postgres-container","testcontainers"],"created_at":"2024-09-26T02:05:19.826Z","updated_at":"2025-06-25T09:33:44.138Z","avatar_url":"https://github.com/simonberner.png","language":"JavaScript","readme":"# Testcontainers Node.js Example\n\n[![Testcontainers nodejs example](https://github.com/simonberner/testcontainers-nodejs-example/actions/workflows/ci.yml/badge.svg)](https://github.com/simonberner/testcontainers-nodejs-example/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/simonberner/testcontainers-nodejs-example/blob/main/LICENSE)\n\n🚧 Running playwright browser tests in a [testcontainer](https://github.com/javierlopezdeancos/testcontainers-node-playwright) is still [work in progress](https://github.com/simonberner/testcontainers-nodejs-example/blob/main/tests/playwright/web.spec.js)! 🚧  \n(If you know how this works, please open a PR, thanks!)\n\n## About\n\n- [Getting Started](https://testcontainers.com/getting-started/)\n- [Getting Started with Node.js](https://testcontainers.com/guides/getting-started-with-testcontainers-for-nodejs/)\n\n## Containers\n\nFor running containers, we have the following options:\n\n- Use Docker Desktop to run the containers locally\n- Use [Testcontainers Desktop App](https://testcontainers.com/desktop/) to run containers locally (embedded runtime) or in the Testcontainers cloud (300min for free)\n- Use [GitHub Actions to run a Testcontainer](https://www.atomicjar.com/2023/06/running-testcontainers-tests-using-github-actions/)\n\n## Testcontainers Cloud\n\n- [Your Account Dashboard](https://app.testcontainers.cloud)\n\n## GitHub Actions\n\nThis project contains a [GitHub Action](https://github.com/simonberner/testcontainers-nodejs-example/actions) which runs the Jest-Tests (Integration-Tests) in a Testcontainer when pushing/merging to main.\n\n## Resources\n\n- [Enable reusable containers](https://testcontainers.com/guides/simple-local-development-with-testcontainers-desktop/#_enable_reusable_containers_to_speed_up_the_development)\n\n### Playwright\n\nIt 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.\n\n- [Playwright module for Testcontainers](https://github.com/javierlopezdeancos/testcontainers-node-playwright)\n- [Playwright Docker](https://playwright.dev/docs/docker)\n- [Playwright Docker Image Tags](https://playwright.dev/docs/docker#image-tags)\n- [Playwright official docker Images](https://mcr.microsoft.com/en-us/product/playwright/about)\n- [Docker image to run Playwright with Node.js](https://hub.docker.com/r/microsoft/playwright)\n\n### Postgres\n\n- [Postgres Docker Images](https://hub.docker.com/_/postgres)\n\n## Credits\n\n- The project is based on [this guide](https://testcontainers.com/guides/getting-started-with-testcontainers-for-nodejs/)\n- [Page Objects vs. Functional Helpers](https://dev.to/muratkeremozcan/page-objects-vs-functional-helpers-2akj)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonberner%2Ftestcontainers-nodejs-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonberner%2Ftestcontainers-nodejs-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonberner%2Ftestcontainers-nodejs-example/lists"}