UNPKG

@stripe/ui-extension-sdk

Version:

The suite of functionality available to UI extensions in Stripe apps

11 lines (10 loc) 654 B
import type { RemoteComponentType, PropsForRemoteComponent } from '@remote-ui/core'; import { Node } from '@remote-ui/testing'; export declare function toContainComponent<Type extends RemoteComponentType<string, any, any>>(this: jest.MatcherUtils, node: Node<unknown>, type: Type, props?: Partial<PropsForRemoteComponent<Type>>): { pass: boolean; message: () => string; }; export declare function toContainComponentTimes<Type extends RemoteComponentType<string, any, any>>(this: jest.MatcherUtils, node: Node<unknown>, type: Type, times: number, props?: Partial<PropsForRemoteComponent<Type>>): { pass: boolean; message: () => string; };