How to use the dockest.runners.PostgresRunner 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 / inherit-from-compose-file / dockest.ts View on Github external
import Dockest, { runners, logLevel } from 'dockest'

const dockest = new Dockest({
  opts: {
    dumpErrors: true,
    logLevel: logLevel.DEBUG,
    composeFile: 'docker-compose.yml',
  },
})

dockest.attachRunners([
  new runners.PostgresRunner({
    service: 'postgres-service',
    database: 'postgres',
    password: 'postgres',
    username: 'postgres',
  }),
])

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