-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
29 lines (25 loc) · 841 Bytes
/
index.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
/// <reference types="cypress" />
import './globals'
/**
* Initializes a single LD client using `LAUNCH_DARKLY_PROJECT_KEY`
* and `LAUNCH_DARKLY_AUTH_TOKEN` environment variables, plus
* optional `LAUNCH_DARKLY_ENVIRONMENT`. Registers Cypress tasks.
*/
export function initCypress(
on: Cypress.PluginEvents,
config: Cypress.PluginConfigOptions,
): Cypress.PluginConfigOptions
interface LaunchDarklyProject {
projectKey: string
environment: string
}
/**
* Creates a separate LaunchDarkly API client for each project
* specified in the `projects` array. Grabs the LD API auth token
* from the environment variable `LAUNCH_DARKLY_AUTH_TOKEN`.
*/
export function initCypressMultipleProjects(
projects: LaunchDarklyProject[],
on: Cypress.PluginEvents,
config: Cypress.PluginConfigOptions,
): Cypress.PluginConfigOptions