refactor: add Redis service to CircleCI for E2E tests

- Added Redis container to samples job in CircleCI config
- Removed all mocking from E2E tests to use real Bull queue
- Updated app.module.ts to support environment-based Redis config
- Fixed test routes to match controller (POST /audio/transcode)
- Updated jest-e2e.json with proper timeout and exit settings
- Tests now perform true integration testing with real Redis
This commit is contained in:
som14062005
2025-12-14 18:13:27 +05:30
parent 270f0a710f
commit a189883ec8
4 changed files with 34 additions and 75 deletions

View File

@@ -169,8 +169,12 @@ jobs:
working_directory: ~/nest
docker:
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
- image: redis:7-alpine
name: redis
environment:
DISABLE_OPENCOLLECTIVE: 'true'
REDIS_HOST: redis
REDIS_PORT: 6379
steps:
- checkout
- *restore-cache
@@ -179,6 +183,7 @@ jobs:
name: Build all samples
command: npm run build:samples
workflows:
build-and-test:
jobs:
@@ -204,3 +209,4 @@ workflows:
- samples:
requires:
- build