Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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()