An open API service indexing awesome lists of open source software.

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

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

Icons made by Freepik from www.flaticon.com