1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Try to fix tests

This commit is contained in:
Andrew Kingston 2024-03-13 17:01:09 +00:00
parent b4a467f9fd
commit 8b4ce703e9

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
}