kafkajs

v1.4.1
A modern Apache Kafka client for node.js
kafka sasl scram

test:local

export KAFKA_VERSION=${KAFKA_VERSION:='0.11'} && NODE_ENV=test echo "KAFKA_VERSION: ${KAFKA_VERSION}" && KAFKAJS_DEBUG_PROTOCOL_BUFFERS=1 ./node_modules/.bin/jest --forceExit --detectOpenHandles

test:debug

NODE_ENV=test KAFKAJS_DEBUG_PROTOCOL_BUFFERS=1 node --inspect-brk node_modules/.bin/jest --detectOpenHandles --runInBand --watch

test:local:watch

yarn test:local --watch

test

yarn lint && JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh 'yarn test:local --ci --maxWorkers=4 --no-watchman'

lint

find . -path ./node_modules -prune -o -path ./coverage -prune -o -name '*.js' -print0 | xargs -0 ./node_modules/.bin/eslint

format

find . -path ./node_modules -prune -o -path ./coverage -prune -o -name '*.js' -print0 | xargs -0 ./node_modules/.bin/prettier --write

precommit

lint-staged

test:group:broker

yarn test:local --testPathPattern 'src/broker/.*'

test:group:admin

yarn test:local --testPathPattern 'src/admin/.*'

test:group:producer

yarn test:local --testPathPattern 'src/producer/.*'

test:group:consumer

yarn test:local --testPathPattern 'src/consumer/.*'

test:group:others

yarn test:local --testPathPattern 'src/(?!(broker|admin|producer|consumer)/).*'

test:group:broker:ci

JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh "yarn test:group:broker --ci --maxWorkers=4 --no-watchman"

test:group:admin:ci

JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh "yarn test:group:admin --ci --maxWorkers=4 --no-watchman"

test:group:producer:ci

JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh "yarn test:group:producer --ci --maxWorkers=4 --no-watchman"

test:group:consumer:ci

JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh "yarn test:group:consumer --ci --maxWorkers=4 --no-watchman"

test:group:others:ci

JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh "yarn test:group:others --ci --maxWorkers=4 --no-watchman"

Metadata

  • MIT
  • >=8.0.0
  • Tulio Ornelas
  • released 10/17/2018

Downloads

Maintainers