How to use the dockest.Dockest 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-resources / dockest.ts View on Github external
import jest from 'jest'
import { Dockest, logLevel, defaultHealthchecks } from 'dockest'

const dockest = new Dockest({
  composeFile: 'docker-compose.yml',
  dumpErrors: true,
  exitHandler: errorPayload =>
    console.log(`\nHello <<${JSON.stringify(errorPayload, null, 2)}>>, nice to meet you ๐Ÿ‘‹๐Ÿผ\n`),
  jestLib: jest,
  jestOpts: { updateSnapshot: true },
  logLevel: logLevel.DEBUG,
  runInBand: true,
})

dockest.run([
  {
    serviceName: 'multiple_resources_postgres1sequelize',
    commands: [
      'sequelize db:migrate:undo:all',
      'sequelize db:migrate',
github erikengervall / dockest / packages / examples / aws-codebuild / src / dockest.ts View on Github external
import { Dockest, logLevel } from 'dockest'

const dockest = new Dockest({
  dumpErrors: true,
  logLevel: logLevel.DEBUG,
})

dockest.run([
  {
    serviceName: 'aws_codebuild_website',
  },
])
github erikengervall / dockest / packages / examples / multiple-compose-files / dockest.ts View on Github external
import { Dockest, logLevel, defaultHealthchecks } from 'dockest'

const dockest = new Dockest({
  composeFile: ['docker-compose-redis.yml', 'docker-compose-postgres.yml'],
  dumpErrors: true,
  logLevel: logLevel.DEBUG,
  runInBand: true,
})

dockest.run([
  {
    serviceName: 'multiple_compose_files_postgres',
    commands: [
      'sequelize db:migrate:undo:all',
      'sequelize db:migrate',
      'sequelize db:seed:undo:all',
      'sequelize db:seed --seed 20190101001337-demo-user',
    ],
    healthchecks: [defaultHealthchecks.postgres],

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