How to use the dockest.default function in dockest

To help you get started, weโ€™ve selected a few dockest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kafkajs / confluent-schema-registry / dockest.ts View on Github external
environment: {
    SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: `${zooKeeperRunner.runnerConfig.service}:${ZooKeeperRunner.DEFAULT_PORT}`,
    SCHEMA_REGISTRY_HOST_NAME: 'localhost',
  },
})

const kafkaRunner = new KafkaRunner({
  service: 'kafka',
  image: 'confluentinc/cp-kafka:5.2.2',
  dependsOn: [zooKeeperRunner],
  ports: {
    [KafkaRunner.DEFAULT_PORT_PLAINTEXT]: KafkaRunner.DEFAULT_PORT_PLAINTEXT,
  },
})

const dockest = new Dockest({
  runners: [kafkaRunner, schemaRegistryRunner],
  jest: {
    lib: require('jest'),
    verbose: true,
  },
  opts: {
    logLevel: logLevel.DEBUG,
    afterSetupSleep: 35,
    dev: {
      debug: process.argv[2] === 'debug' || process.argv[2] === 'dev',
    },
  },
})

dockest.run()

dockest

Dockest is an integration testing tool aimed at alleviating the process of evaluating unit tests whilst running multi-container Docker applications.

MIT
Latest version published 1 year ago

Package Health Score

54 / 100
Full package analysis