core: fix lookup tests

This commit is contained in:
Abdullah Atta
2025-06-04 12:23:30 +05:00
parent 21cbc75b93
commit c1a684f14a

View File

@@ -32,6 +32,7 @@ import { getId } from "../../src/utils/id.js";
import { existsSync, mkdirSync } from "fs";
import * as betterTrigram from "sqlite-better-trigram";
import * as fts5Html from "sqlite3-fts5-html";
import { getLoadablePath } from "sqlite-regex";
const TEST_NOTEBOOK: Partial<Notebook> = {
title: "Test Notebook",
@@ -67,6 +68,7 @@ function databaseTest(type: "memory" | "persistent" = "memory") {
});
betterTrigram.load(betterSqliteDb);
fts5Html.load(betterSqliteDb);
betterSqliteDb.loadExtension(getLoadablePath());
return db.init().then(() => db);
}