jest-metadata
Version:
🦸♂️ Superhero power for your Jest reporters! 🦸♀️
16 lines (15 loc) • 1.17 kB
TypeScript
import type { BaseMetadata, DescribeBlockMetadata, HookDefinitionMetadata, HookInvocationMetadata, TestFileMetadata, TestEntryMetadata, TestFnInvocationMetadata, TestInvocationMetadata } from '../containers';
export interface MetadataSelector {
readonly value: () => BaseMetadata | undefined;
readonly file: TestFileMetadata | undefined;
readonly describeBlock: DescribeBlockMetadata | undefined;
readonly testEntry: TestEntryMetadata | undefined;
readonly hookDefinition: HookDefinitionMetadata | undefined;
readonly definition: DescribeBlockMetadata | HookDefinitionMetadata | TestEntryMetadata | undefined;
readonly testFnInvocation: TestFnInvocationMetadata | undefined;
readonly hookInvocation: HookInvocationMetadata | undefined;
readonly testInvocation: TestInvocationMetadata | undefined;
readonly invocationParent: TestInvocationMetadata | DescribeBlockMetadata | undefined;
readonly invocation: TestFileMetadata | DescribeBlockMetadata | HookInvocationMetadata | TestInvocationMetadata | TestFnInvocationMetadata | undefined;
}
export type MetadataSelectorFactory = (value: () => BaseMetadata) => MetadataSelector;