Skip to content

Commit 4441228

Browse files
committed
fix: type system ipc test runtime cache mock
1 parent 3efdb77 commit 4441228

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/main/ipc/handlers/__tests__/system.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ const getDirectoryState = vi.fn()
1414
const moveVault = vi.fn()
1515
const getVaultPath = vi.fn(() => '/current-vault')
1616
const getPaths = vi.fn((vaultPath: string) => ({ vaultPath }))
17-
const getRuntimeCache = vi.fn(() => ({ snippets: [] }))
17+
interface SnippetFileLookup {
18+
filePath: string
19+
id: number
20+
}
21+
22+
const getRuntimeCache = vi.fn((): { snippets: SnippetFileLookup[] } => ({
23+
snippets: [],
24+
}))
1825
const findSnippetById = vi.fn()
1926
const preferencesSet = vi.fn()
2027

0 commit comments

Comments
 (0)