budibase/jestTestcontainersConfigGen...

27 lines
501 B
JavaScript
Raw Normal View History

2023-01-24 12:02:58 +01:00
module.exports = dependenciesEnv => {
if (process.env.DEV_TOOLS) {
return {
dockerCompose: {
composeFilePath: `${__dirname}/hosting`,
composeFile: 'docker-compose.dev.yaml',
startupTimeout: 10000,
}
}
}
return {
devEnv: {
image: "budibase/dependencies",
tag: "latest",
ports: [6379, 5984, 9000],
env: dependenciesEnv,
wait: {
type: "text",
text: "Test environment started...",
},
}
}
}