/// type HTML = string type JavaScript = string /** * Options for creating a single test fiddle. * @example ``` { name: 'simple test', description: ` This is the simplest test possible. Just finds an element by ID. `, html: `
Hi there
`, test: ` cy.get('#my-element') ` } ``` */ interface RunExampleOptions { name?: string, /** * Optional description of the test. Supports Markdown via `nmd` * To open links in new window , use `[text](+url)` format. * * @type {string} * @memberof RunExampleOptions * @see https://github.com/Holixus/nano-markdown */ description?: string, html?: HTML, test: JavaScript, // skip and only are exclusive - they cannot be both set to true skip?: boolean, only?: boolean } declare namespace Cypress { interface Chainable { /** * Custom command to generate a runnable test from HTML and JavaScript. */ runExample(options: RunExampleOptions): Chainable } }