Skip to content

Testing

Unit tests do not start Docker. Integration tests pick a compose file from KAFKA_VERSION (default 4.0):

pnpm --filter @cookiemonsterdev/kafka-core test
KAFKA_VERSION=0.10 pnpm --filter @cookiemonsterdev/kafka-core test:integration
KAFKA_VERSION=4.0 pnpm --filter @cookiemonsterdev/kafka-core test:integration
KAFKA_VERSION=4.3 pnpm --filter @cookiemonsterdev/kafka-core test:integration

Leave a cluster running with DO_NOT_STOP=1, or point at an already-running cluster with KAFKA_EXTERNAL=1. The mapping lives in packages/core/test/assets/README.md.

The tested broker matrix is on Compatibility. SASL/GSSAPI is covered by unit tests only; there is no Kerberos compose stack in CI.