refactor(Cypress): add nodemodules

This commit is contained in:
2021-09-02 17:18:41 +02:00
parent 1aa57bbd0a
commit bc6e1bc12e
4238 changed files with 340975 additions and 8 deletions

View File

@@ -0,0 +1,69 @@
export interface Transform {
regexp: RegExp;
transformer(...arg: string[]): any;
useForSnippets?: boolean;
preferForRegexpMatch?: boolean;
name?: string;
typeName?: string; // deprecated
}
export function defineStep(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function defineParameterType(parameterType: Transform): void;
// Aliased versions of the above funcs.
export function Given(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function Given(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function When(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function When(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function Then(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function Then(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function And(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function And(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function But(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function But(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function Before(
optionsOrImplementation: object | ((...args: any[]) => void),
implementation?: (...args: any[]) => void
): void;
export function After(
optionsOrImplementation: object | ((...args: any[]) => void),
implementation?: (...args: any[]) => void
): void;