Skip to content

Commit 418ddb0

Browse files
saby1101claude
andcommitted
chore: add comprehensive RabbitMQ integration test suite
- Add rabbitmq.spec.ts with 15 integration tests using testcontainers - Tests cover publisher registration, message consumption, E2E flow - Tests verify batch flushing fix (remaining messages < batch size) - Tests cover multiple event types, shutdown flush, error handling - Separate RabbitMQ tests from regular tests (require Docker) - Add test:rabbitmq and test:all npm scripts - Add testcontainers dev dependency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 483b68b commit 418ddb0

2 files changed

Lines changed: 547 additions & 2 deletions

File tree

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
"prepare": "husky",
1313
"pretty": "prettier --write \"./src/**/*.{js,ts,json,md}\"",
1414
"clean": "rimraf dist",
15-
"test": "jest",
16-
"test:coverage": "jest --coverage",
15+
"test": "jest --testPathIgnorePatterns=rabbitmq.spec.ts",
16+
"test:coverage": "jest --coverage --testPathIgnorePatterns=rabbitmq.spec.ts",
17+
"test:rabbitmq": "jest rabbitmq.spec.ts --testTimeout=120000",
18+
"test:all": "jest --testTimeout=120000",
1719
"transpile": "tsc -p tsconfig.build.json",
1820
"build": "run-s clean transpile",
1921
"prepublishOnly": "npm run build"
@@ -53,6 +55,7 @@
5355
"npm-run-all": "^4.1.5",
5456
"prettier": "^3.7.4",
5557
"rimraf": "^6.1.2",
58+
"testcontainers": "^11.11.0",
5659
"ts-jest": "^29.4.6",
5760
"ts-node": "^10.9.2",
5861
"typescript": "^5.9.3"

0 commit comments

Comments
 (0)