-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.d.ts
38 lines (23 loc) · 833 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
30
31
32
33
34
35
36
37
38
/// <reference types="cypress" />
interface Model {
id: string;
}
interface User extends Model {
email: string;
}
interface CypressLaravelOptions {
commands: string[];
}
declare global {
namespace Cypress {
interface Chainable {
create<M extends Model = any>(model: string, attributes?: any): Cypress.Chainable<M>;
create<M extends Model = any>(model: string, quantity: number, attributes?: any): Cypress.Chainable<M>;
login<U extends User = any>(userId?: number, guard?: string): Cypress.Chainable<U>;
logout(guard?: string): void;
artisan(command: string, parameters?: object): void;
}
}
}
export function useCypressLaravel(options?: Partial<CypressLaravelOptions>): void;
export function useDatabaseMigrations(): void;