Skip to content

Commit

Permalink
build: fix missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
waynevanson committed Aug 20, 2023
1 parent 7bb05a6 commit 396546d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/data-entry/src/test-utils/mocks.ts
Original file line number Diff line number Diff line change
@@ -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<Omit<ApplicationContext, 'vault'>> & {
vault: Directory;
vault: MockVaultParams;
};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/data-entry/src/test-utils/rtl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand Down

0 comments on commit 396546d

Please sign in to comment.