fixed build libs

This commit is contained in:
Boki 2025-06-25 08:29:53 -04:00
parent b03231b849
commit 42baadae38
26 changed files with 981 additions and 541 deletions

View file

@ -1,5 +1,5 @@
import { beforeEach, describe, expect, it } from 'bun:test';
import { SimpleMongoDBClient } from './simple-mongodb';
import { SimpleMongoDBClient } from '../src/simple-mongodb';
describe('MongoDBClient', () => {
let client: SimpleMongoDBClient;

View file

@ -188,7 +188,7 @@ export class SimpleTransactionManager {
async transaction<T>(fn: (client: any) => Promise<T>): Promise<T> {
const mockClient = {
query: async () => ({ rows: [], rowCount: 0 }),
query: async (sql?: string) => ({ rows: [], rowCount: 0 }),
release: () => {},
};

View file

@ -3,7 +3,7 @@ import {
SimplePostgresClient,
SimpleQueryBuilder,
SimpleTransactionManager,
} from './simple-postgres';
} from '../src/simple-postgres';
describe('PostgresClient', () => {
let client: SimplePostgresClient;

View file

@ -1,10 +1,10 @@
import { describe, it, expect, beforeEach, mock } from 'bun:test';
import { QuestDBClient } from './client';
import { QuestDBHealthMonitor } from './health';
import { QuestDBQueryBuilder } from './query-builder';
import { QuestDBInfluxWriter } from './influx-writer';
import { QuestDBSchemaManager } from './schema';
import type { QuestDBClientConfig, OHLCVData, TradeData } from './types';
import { QuestDBClient } from '../src/client';
import { QuestDBHealthMonitor } from '../src/health';
import { QuestDBQueryBuilder } from '../src/query-builder';
import { QuestDBInfluxWriter } from '../src/influx-writer';
import { QuestDBSchemaManager } from '../src/schema';
import type { QuestDBClientConfig, OHLCVData, TradeData } from '../src/types';
// Simple in-memory QuestDB client for testing
class SimpleQuestDBClient {