Skip to content

Commit

Permalink
fix: define the initApplicationConfig type for ts
Browse files Browse the repository at this point in the history
  • Loading branch information
fboulnois committed Feb 14, 2025
1 parent 5f68e70 commit 07ac4a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cypress/support/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/* eslint-disable no-undef */

declare namespace Cypress {
interface Chainable {
/**
* Custom command to auth as a specific role service account
* @example cy.auth('admin')
*/
auth(roleName: string): Chainable<Element>
/**
* Custom command to initialize application configuration
* @example cy.initApplicationConfig()
*/
initApplicationConfig(): Chainable<void>
}
}

0 comments on commit 07ac4a3

Please sign in to comment.