- Remove ~44k LOC of dead code, legacy v1 TS simulator/strategy stack, event-bus, analytics FastAPI prototype, legacy calculation archives, and unused deps (data-ingestion provider API handlers untouched) - Extract @stock-bot/di/http-security and isolate @stock-bot/browser to data-ingestion via ServiceContainerBuilder.withRegistrations() - Harden @stock-bot/mongodb read-only proxies, flatten @stock-bot/postgres with unified master+research migrations, and fix @stock-bot/config EnvLoader, ServiceApplication worker lifecycle, NamespacedCache.clear(), and BatchProcessor error propagation - Flatten workspace root (remove apps/stock/package.json) and collapse orchestrator re-export shims - Pin all Docker image versions, add shm_size/nofile/RAM caps and docker-compose.quant.yml, fix 05-add-visible-column.sql view recreation, and decouple dev/QA Compose project names for side-by-side execution - Update PLATFORM-PLAN, DATA-CONTRACTS (bars_1m PARTITION BY MONTH, Rust bulk ETL, DuckDB limits), MILESTONES, and servers docs
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
import { describe, expect, it } from 'bun:test';
|
|
import * as diExports from '../src/index';
|
|
|
|
describe('DI Package Exports', () => {
|
|
it('should export ServiceContainerBuilder', () => {
|
|
expect(diExports.ServiceContainerBuilder).toBeDefined();
|
|
});
|
|
|
|
it('should export ServiceLifecycleManager', () => {
|
|
expect(diExports.ServiceLifecycleManager).toBeDefined();
|
|
});
|
|
|
|
it('should export ServiceApplication', () => {
|
|
expect(diExports.ServiceApplication).toBeDefined();
|
|
});
|
|
|
|
it('should export HandlerScanner', () => {
|
|
expect(diExports.HandlerScanner).toBeDefined();
|
|
});
|
|
|
|
|
|
it('should export schemas', () => {
|
|
expect(diExports.appConfigSchema).toBeDefined();
|
|
expect(diExports.redisConfigSchema).toBeDefined();
|
|
expect(diExports.mongodbConfigSchema).toBeDefined();
|
|
expect(diExports.postgresConfigSchema).toBeDefined();
|
|
expect(diExports.questdbConfigSchema).toBeDefined();
|
|
expect(diExports.proxyConfigSchema).toBeDefined();
|
|
expect(diExports.browserConfigSchema).toBeDefined();
|
|
expect(diExports.queueConfigSchema).toBeDefined();
|
|
});
|
|
|
|
it('should export type definitions', () => {
|
|
// These are type exports - check that the awilix-container module is re-exported
|
|
expect(diExports).toBeDefined();
|
|
// The types AppConfig, ServiceCradle, etc. are TypeScript types and not runtime values
|
|
// We can't test them directly, but we've verified they're exported in the source
|
|
});
|
|
});
|