-
Notifications
You must be signed in to change notification settings - Fork 4
/
plugin.d.ts
35 lines (31 loc) · 1.11 KB
/
plugin.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/// <reference types="cypress" />
interface FailFastParallelCallbacks {
/**
* onCancel callback.
* Callback that will be executed on first test failure producing that cypress-fail-fast starts skipping tests.
*/
onCancel(): void
/**
* isCancelled callback.
* If this callback returns true, cypress-fail-fast will start skipping tests.
* @returns boolean. true if remaining tests should be skipped
*/
isCancelled(): boolean
}
interface FailFastPluginConfigOptions {
/**
* Parallel callbacks.
* Callbacks to be executed when strategy is "parallel".
*/
parallelCallbacks?: FailFastParallelCallbacks
}
/**
* Installs cypress-fail-fast plugin
* @example failFastPlugin(on, config, {});
* @param on Cypress plugin events
* @param config Cypress plugin config options
* @param failFastConfig cypress-fail-fast plugin config options
* @returns Cypress plugin config options
*/
declare function _exports(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions, failFastConfig?: FailFastPluginConfigOptions): Cypress.PluginConfigOptions
export = _exports;