https://github.com/flolu/node-integration-testing
🧪 Example for Easy and Effective Integration Testing with Node.js and Docker
https://github.com/flolu/node-integration-testing
docker docker-compose github-actions integration-testing jasmine mysql nodejs testcontainers testing typescript
Last synced: 3 days ago
JSON representation
🧪 Example for Easy and Effective Integration Testing with Node.js and Docker
- Host: GitHub
- URL: https://github.com/flolu/node-integration-testing
- Owner: flolu
- Created: 2021-10-08T17:20:17.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-20T13:03:37.000Z (over 3 years ago)
- Last Synced: 2025-04-05T00:24:16.300Z (25 days ago)
- Topics: docker, docker-compose, github-actions, integration-testing, jasmine, mysql, nodejs, testcontainers, testing, typescript
- Language: TypeScript
- Homepage: https://youtu.be/eRPkNd40n94
- Size: 85 KB
- Stars: 13
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
![]()
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` or `yarn dev` (Start development backend services, http://localhost:3000)
- `make test` or `yarn test` (Run integration tests)
- `` (Start test for current file, you can also set debug breakpoints)# Codebase
- [`index.ts`](index.ts) entry point to a simple todo management Node.js API
- [`index.test.ts`](index.test.ts) entry point to integration testing the todo API
- [`docker-compose.yml`](docker-compose.yml) to start the backend for development
- [`workflows/test.yml`](.github/workflows/test.yml) to run integrations test on every push with GitHub Actions# Credits