UNPKG

e2ed

Version:

E2E testing framework over Playwright

11 lines (10 loc) 660 B
import { type NonSelectorMatchers, type SelectorMatchers } from './utils/expect'; import type { IsEqual, Selector } from './types/internal'; type ExpectFunction = SelectorExpect & NotSelectorExpect; type NotSelectorExpect = <Actual>(this: void, actual: IsEqual<Actual, Selector> extends true ? 'You should call some property or method on the selector' : Actual | Promise<Actual>, description: string) => NonSelectorMatchers<Actual>; type SelectorExpect = (this: void, actual: Selector, description: string) => SelectorMatchers; /** * Wraps a value or promised value to assertion for further checks. */ export declare const expect: ExpectFunction; export {};