Skip to content

Commit

Permalink
typedefs, session refactor for readability, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kuceb committed Aug 3, 2021
1 parent 64485d1 commit fa6c6c5
Show file tree
Hide file tree
Showing 10 changed files with 234 additions and 146 deletions.
5 changes: 5 additions & 0 deletions cli/types/cypress.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2680,6 +2680,11 @@ declare namespace Cypress {
* @default 'top'
*/
scrollBehavior: scrollBehaviorOptions
/**
* Enable experimental session support. See https://on.cypress.io/session
* @default false
*/
experimentalSessionSupport: boolean
/**
* Allows listening to the `before:run`, `after:run`, `before:spec`, and `after:spec` events in the plugins file during interactive mode.
* @default false
Expand Down
1 change: 1 addition & 0 deletions cli/types/tests/cypress-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ namespace CypressTaskTests {
}

namespace CypressSessionsTests {
Cypress.config('experimentalSessionSupport') // $ExpectType boolean
cy.session('user')
cy.session('user', () => {})
cy.session('user', () => {}, {})
Expand Down
Loading

0 comments on commit fa6c6c5

Please sign in to comment.