Service using node to test kafka producer and consumer using different approaches:
- Using jest.
- Using testcontainers.
- ✅ Test redis. Create a container with redis and test the connection.
src/test-e2e/redis.test.ts
- ✅ Test redis. Create a container with redis and test the connection.
- Using docker services.
Use docker-compose to run the project.
docker compose up -dTo run the tests, use the following command using docker compose:
docker compose up
docker compose exec testing-service yarn test
docker compose exec testing-service yarn test-e2e