Type alias Expect<ExtendedMatchers>
Type declaration
- <T>(actual, messageOrOptions?): MakeMatchers<void, T, ExtendedMatchers>
Parameters
- actual: T
Optional messageOrOptions: string | {
message?: string;
}
- (configuration): Expect<ExtendedMatchers>
Parameters
- configuration: {
message?: string;
soft?: boolean;
timeout?: number;
}Optional message?: string
Optional soft?: boolean
Optional timeout?: number
not: Omit<AsymmetricMatchers, "any" | "anything">
poll: (<T>(actual, messageOrOptions?) => PollMatchers<Promise<void>, T, ExtendedMatchers>)
- <T>(actual, messageOrOptions?): PollMatchers<Promise<void>, T, ExtendedMatchers>
Parameters
- actual: (() => T | Promise<T>)
- (): T | Promise<T>
Returns T | Promise<T>
Optional messageOrOptions: string | {
intervals?: number[];
message?: string;
timeout?: number;
}
Returns PollMatchers<Promise<void>, T, ExtendedMatchers>
extend:function
getState:function
- getState(): unknown
Returns unknown