UNPKG

@stencil/playwright

Version:

Testing adapter to use Playwright with Stencil

34 lines (33 loc) 1.21 kB
interface CustomMatchers<R = unknown> { /** * Will check if the event spy received the expected event. */ toHaveReceivedEvent(): R; /** * Will check if the event spy received the expected event with the expected detail. * @param eventDetail The expected detail of the event. */ toHaveReceivedEventDetail(eventDetail: any): R; /** * Will check if the event spy received the expected event at the given index with the expected detail. * @param index position of the event in the received events array. * @param eventDetail The expected detail of the event. */ toHaveNthReceivedEventDetail(index: number, eventDetail: any): R; /** * Will check if the event spy received the expected event with the expected detail on the first received event. * @param eventDetail The expected detail of the event. */ toHaveFirstReceivedEventDetail(eventDetail: any): R; /** * Will check how many times the event has been received. */ toHaveReceivedEventTimes(count: number): R; } declare global { namespace PlaywrightTest { interface Matchers<R> extends CustomMatchers<R> { } } } export {};