Skip to content

Commit bd855ba

Browse files
committed
fix(typecheck): use direct imports for SqliteExporter/Importer in tests
1 parent a15ae3e commit bd855ba

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/memory/io/__tests__/io.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ import {
2929
MarkdownImporter,
3030
ObsidianExporter,
3131
ObsidianImporter,
32-
SqliteExporter,
33-
SqliteImporter,
3432
ChatGptImporter,
3533
CsvImporter,
3634
} from '../index.js';
3735

36+
// SqliteExporter/Importer are not barrel-exported (they require better-sqlite3 native module).
37+
// Import directly for tests that have better-sqlite3 available.
38+
import { SqliteExporter } from '../SqliteExporter.js';
39+
import { SqliteImporter } from '../SqliteImporter.js';
40+
3841
// ---------------------------------------------------------------------------
3942
// Test infrastructure helpers
4043
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)