![](https://raw.githubusercontent.com/flolu/node-integration-testing/master/./.github/check.png)
Integration Testing
Example for Easy and Effective Integration Testing with Node.js and Testcontainers
Watch the YouTube Tutorial
Usage
Recommended OS: Linux
Requirements: Yarn, Node.js
Optional: Docker, Docker Compose
Setup
yarn install
Development
make dev
oryarn dev
(Start development backend services, http://localhost:3000)make test
oryarn test
(Run integration tests)<F5>
(Start test for current file, you can also set debug breakpoints)
Codebase
index.ts
entry point to a simple todo management Node.js APIindex.test.ts
entry point to integration testing the todo APIdocker-compose.yml
to start the backend for developmentworkflows/test.yml
to run integrations test on every push with GitHub Actions
Credits
Icons made by Freepik from www.flaticon.com