UNPKG

@dossierhq/integration-test

Version:

Integration test to ensure that different Dossier database adapters work as expected.

6 lines (5 loc) 828 B
import { EntityStatus, type Entity, type EntityReference, type EntitySamplingPayload, type ErrorType, type PublishedEntity, type Result } from '@dossierhq/core'; import type { AppEntity, AppPublishedEntity } from '../SchemaTypes.js'; export declare function countEntityStatuses(entities: AppEntity[]): Record<EntityStatus, number>; export declare function assertSampledEntities<TEntity extends AppEntity | AppPublishedEntity | EntityReference>(actualResult: Result<EntitySamplingPayload<AppEntity | AppPublishedEntity>, ErrorType>, expectedSeed: number, expectedEntities: TEntity[]): void; export declare function assertSampledEntitiesArePartOfExpected<TEntity extends Entity<string, object> | PublishedEntity<string, object>>(actualResult: Result<EntitySamplingPayload<TEntity>, ErrorType>, expectedEntities: TEntity[]): void;