Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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',
import { Dockest, logLevel } from 'dockest'
const dockest = new Dockest({
dumpErrors: true,
logLevel: logLevel.DEBUG,
})
dockest.run([
{
serviceName: 'aws_codebuild_website',
},
])
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],