From 396546dbe8b0e26c207a4fc0174f4a16416d2b2c Mon Sep 17 00:00:00 2001 From: Wayne Van Son Date: Sun, 20 Aug 2023 17:11:40 +1000 Subject: [PATCH] build: fix missing types --- packages/data-entry/src/test-utils/mocks.ts | 3 +-- packages/data-entry/src/test-utils/rtl.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/data-entry/src/test-utils/mocks.ts b/packages/data-entry/src/test-utils/mocks.ts index d3a4eb8..d1208e0 100644 --- a/packages/data-entry/src/test-utils/mocks.ts +++ b/packages/data-entry/src/test-utils/mocks.ts @@ -1,11 +1,10 @@ import { Theme } from '@mui/material'; import { MainProps as ApplicationContext } from '../components'; import { MockVaultParams, Vault, createVaultMock } from 'obsidian'; -import { Directory } from '@waynevanson/obsidian-mocks/dist/vault/data-adapter'; export interface MockOptions { application?: Partial> & { - vault: Directory; + vault: MockVaultParams; }; } diff --git a/packages/data-entry/src/test-utils/rtl.tsx b/packages/data-entry/src/test-utils/rtl.tsx index 2fcdc22..42a8448 100644 --- a/packages/data-entry/src/test-utils/rtl.tsx +++ b/packages/data-entry/src/test-utils/rtl.tsx @@ -47,7 +47,7 @@ export function render< {} as never, options?.application ?? {}, ); - const mocks = createMocks({ vault: { root: vaultOptions } }); + const mocks = createMocks({ vault: vaultOptions }); const application = { ...most, vault: mocks.vault }; const wrapper: React.JSXElementConstructor<{