upgraded configs and added lots of tests
This commit is contained in:
parent
c2420a34f1
commit
62a29259b9
7 changed files with 1583 additions and 16 deletions
|
|
@ -25,10 +25,8 @@ describe('Config Module', () => {
|
|||
|
||||
// Create test configuration files
|
||||
const config = {
|
||||
app: {
|
||||
name: 'test-app',
|
||||
version: '1.0.0',
|
||||
},
|
||||
name: 'test-app',
|
||||
version: '1.0.0',
|
||||
service: {
|
||||
name: 'test-service',
|
||||
port: 3000,
|
||||
|
|
@ -38,7 +36,7 @@ describe('Config Module', () => {
|
|||
host: 'localhost',
|
||||
port: 5432,
|
||||
database: 'testdb',
|
||||
username: 'testuser',
|
||||
user: 'testuser',
|
||||
password: 'testpass',
|
||||
},
|
||||
questdb: {
|
||||
|
|
@ -47,7 +45,8 @@ describe('Config Module', () => {
|
|||
pgPort: 8812,
|
||||
},
|
||||
mongodb: {
|
||||
uri: 'mongodb://localhost:27017',
|
||||
host: 'localhost',
|
||||
port: 27017,
|
||||
database: 'testdb',
|
||||
},
|
||||
dragonfly: {
|
||||
|
|
@ -64,15 +63,11 @@ describe('Config Module', () => {
|
|||
enabled: true,
|
||||
rateLimit: 5,
|
||||
},
|
||||
quoteMedia: {
|
||||
qm: {
|
||||
enabled: false,
|
||||
apiKey: 'test-key',
|
||||
},
|
||||
},
|
||||
features: {
|
||||
realtime: true,
|
||||
backtesting: true,
|
||||
},
|
||||
environment: 'test',
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue