Function expectInstanceExport
- expectInstanceExport<Type extends keyof WHFSTypes>(
expectType: Type,
expectData: RecursivePartialTestable<
ExportedTypedInstance<NoInfer<Type>>["data"],
>,
options: { partial: true },
): (instance: null | ExportedInstance) => trueType Parameters
- Type extends keyof WHFSTypes
Parameters
- expectType: Type
- expectData: RecursivePartialTestable<ExportedTypedInstance<NoInfer<Type>>["data"]>
- options: { partial: true }
Returns (instance: null | ExportedInstance) => true
- expectInstanceExport<Type extends keyof WHFSTypes>(
expectType: Type,
expectData?: RecursiveTestable<
ExportedTypedInstance<NoInfer<Type>>["data"],
>,
options?: { partial?: false },
): (instance: null | ExportedInstance) => trueBuild a test callback whether a field is an expected Instance export
Type Parameters
- Type extends keyof WHFSTypes
Parameters
- expectType: Type
OptionalexpectData: RecursiveTestable<ExportedTypedInstance<NoInfer<Type>>["data"]>Optionaloptions: { partial?: false }
Returns (instance: null | ExportedInstance) => true
Build a test callback whether a field is an expected Instance export