diff --git a/foundations/core/packages/core/src/__tests__/query.test.ts b/foundations/core/packages/core/src/__tests__/query.test.ts index e7c06bebb8..781017c149 100644 --- a/foundations/core/packages/core/src/__tests__/query.test.ts +++ b/foundations/core/packages/core/src/__tests__/query.test.ts @@ -17,7 +17,8 @@ import { findProperty } from '../query' import type { Doc, Ref, Class } from '../classes' function doc (id: string, fields: Record = {}): Doc { - return { _id: id as Ref, _class: 'test:class:Issue' as Ref>, ...fields } as Doc + const doc: Doc = { _id: id as Ref, _class: 'test:class:Issue' as Ref>, ...fields } as any + return doc } describe('findProperty', () => {