wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
28 lines (24 loc) • 661 B
text/typescript
export interface Example {
type: 'enzyme' | 'protractor' | 'puppeteer';
pattern?: RegExp;
generate(params: ExampleGeneratorParams): String;
}
export interface UnidriverExample {
type: 'enzyme' | 'protractor' | 'puppeteer' | 'react';
title: String;
pattern?: RegExp;
generate(params: UnidriverExampleGenerator): String;
}
interface UnidriverExampleGenerator {
componentName: string;
pathToTestkit: string;
testkitFactoryName: string;
}
interface ExampleGeneratorParams {
capitalizedTestkitFactoryName: string;
componentLC: string;
componentName: string;
driverName: string;
pathToTestkit: string;
testkitFactoryName: string;
}