fix: complete Phase 4 integration test fixes

- Fixed better-sqlite3 ES module imports across all tests
- Updated template repository method to handle undefined results
- Fixed all database column references to match schema
- Corrected MCP transport initialization
- All integration tests now passing
This commit is contained in:
czlonkowski
2025-07-29 12:46:55 +02:00
parent 11675cccd9
commit c824fb5ebf
8 changed files with 530 additions and 245 deletions

View File

@@ -1,10 +1,10 @@
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
import * as Database from 'better-sqlite3';
import Database from 'better-sqlite3';
import { TestDatabase, TestDataGenerator, PerformanceMonitor } from './test-utils';
describe('FTS5 Full-Text Search', () => {
let testDb: TestDatabase;
let db: Database;
let db: Database.Database;
beforeEach(async () => {
testDb = new TestDatabase({ mode: 'memory', enableFTS5: true });