cypress-ct-html
Version:
Cypress Component Testing for plain HTML/CSS/JS and Web Components
16 lines (15 loc) • 637 B
TypeScript
export declare function mount<T>(component: HTMLElement | string): Cypress.Chainable<JQuery<T>>;
declare global {
namespace Cypress {
interface Chainable {
/**
* Mount your component into Cypress sandbox
* @param component content (HTMLElement) to render
* @type Name of the element to be mounted (as a string)
* @throws Error if the provided HTML string has more than one root element
* @throws Error if the provided HTML string is not able to be parsed into a valid HTML element
*/
mount: typeof mount;
}
}
}