Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dbConnectionOptions: {
synchronize: false,
logging: false,
migrations: [path.join(__dirname, 'migrations/*.ts')],
...getDbConfig(),
},
paymentOptions: {
paymentMethodHandlers: [examplePaymentHandler],
},
customFields: {
/*Product: [
{ name: 'rating', type: 'float', readonly: true },
{ name: 'markup', type: 'float', internal: true },
],*/
},
logger: new DefaultLogger({ level: LogLevel.Info }),
importExportOptions: {
importAssetsDir: path.join(__dirname, 'import-assets'),
},
plugins: [
AssetServerPlugin.init({
route: 'assets',
assetUploadDir: path.join(__dirname, 'assets'),
port: 5002,
}),
DefaultSearchPlugin,
// ElasticsearchPlugin.init({
// host: 'http://192.168.99.100',
// port: 9200,
// }),
EmailPlugin.init({
devMode: true,
export function getLoadTestConfig(tokenMethod: 'cookie' | 'bearer'): Required {
const count = getProductCount();
return mergeConfig(defaultConfig, {
paymentOptions: {
paymentMethodHandlers: [examplePaymentHandler],
},
orderOptions: {
orderItemsLimit: 99999,
},
logger: new DefaultLogger({ level: LogLevel.Info }),
dbConnectionOptions: getMysqlConnectionOptions(count),
authOptions: {
tokenMethod,
requireVerification: false,
},
importExportOptions: {
importAssetsDir: path.join(__dirname, './data-sources'),
},
workerOptions: {
runInMainProcess: true,
},
customFields: {},
plugins: [
AssetServerPlugin.init({
assetUploadDir: path.join(__dirname, 'static/assets'),
route: 'assets',