@ackplus/nest-dynamic-templates
Version:
Dynamic template management for NestJS applications
24 lines • 820 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.testRedisConfig = exports.testDatabaseConfig = void 0;
const template_entity_1 = require("../lib/entities/template.entity");
const template_layout_entity_1 = require("../lib/entities/template-layout.entity");
exports.testDatabaseConfig = {
type: 'sqlite',
database: ':memory:',
entities: [template_entity_1.NestDynamicTemplate, template_layout_entity_1.NestDynamicTemplateLayout],
logging: ['error', 'warn'],
synchronize: true,
dropSchema: true,
};
exports.testRedisConfig = {
type: 'single',
options: {
host: 'localhost',
port: 6379,
retryStrategy: (times) => {
return Math.min(times * 50, 2000);
},
},
};
//# sourceMappingURL=test-database.config.js.map