Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
})
)
break
}
case 'export-event-store': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig,
authModule
)
const exportFile = process.argv[3]
await exportEventStore(
resolveConfig,
{ exportFile },
adjustWebpackConfigs({
resolveConfig,
commonPackages
})
)
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig,
authModule
}
case 'import-event-store': {
const resolveConfig = merge(baseConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(baseConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(baseConfig, testFunctionalConfig)
await reset(resolveConfig, {
dropEventStore: true,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
await runTestcafe({
resolveConfig,
functionalTestsDir: 'test/functional',
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig
)
await reset(resolveConfig, {
dropEventStore: true,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig
)
await reset(resolveConfig, {
dropEventStore: true,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig
)
await reset(resolveConfig, {
dropEventStore: true,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig
)
await reset(
resolveConfig,
{
dropEventStore: true,
dropSnapshots: true,
dropReadModels: true,
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig
)
await reset(resolveConfig, {
dropEventStore: true,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})