orphic-cypress
Version:
Set of utilities and typescript transformers to cover storybook stories with cypress component tests
12 lines (11 loc) • 532 B
TypeScript
import type { StoryFileCy } from "./types";
/**
* Execute standard cypress tests against a set of storybook components.
* If the storybook story or object is normal, then it will perform a simple
* 'mount' and expect no errors to throw. If the story or object has a `cy`
* property, then the keys of that object will be used as 'it' descriptions
* and each test there will be executed.
*
* @throws CyTestConfigError
*/
export declare const executeCyTests: <T extends StoryFileCy>(stories: T, describeText?: string) => void;