Try to fix tests

This commit is contained in:
Andrew Kingston 2024-03-13 17:01:09 +00:00
parent b4a467f9fd
commit 8b4ce703e9
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ export async function ensureSnippetContext() {
// Otherwise get snippets for this app and update context
let snippets: Snippet[] | undefined
const db = getAppDB()
if (db) {
if (db && !env.isTest()) {
const app = await db.get<App>(DocumentType.APP_METADATA)
snippets = app.snippets
}