How to use the dockest.runners.GeneralPurposeRunner 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 erikengervall / dockest / packages / examples / multiple-projects / dockest.ts View on Github external
import Dockest, { logLevel, runners } from 'dockest'

const dockest = new Dockest({
  jest: {
    lib: require('jest'),
    projects: ['./projects'],
  },
  opts: {
    logLevel: logLevel.DEBUG,
  },
})

const placeHolderRunner = new runners.GeneralPurposeRunner({
  service: 'never_gonna_give_you_up',
  image: 'redis:5.0.3',
  ports: [
    {
      published: 6382,
      target: 6379,
    },
  ],
})

dockest.attachRunners([placeHolderRunner])

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