question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[typescript] Cypress.session type does not exist

See original GitHub issue

Current behavior

I tried to use Cypress.session.clearAllSavedSessions();, but got a typescript error.

image

Desired behavior

Cypress.session should be typed correctly.

Test code to reproduce

https://github.com/IanVS/cypress-test-tiny

npm i npm run typecheck

Cypress Version

9.1.1

Other

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
IanVScommented, Dec 17, 2021

👍 thanks, then yeah I can take a crack at adding it.

0reactions
cypress-bot[bot]commented, Dec 21, 2021

Released in 9.2.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v9.2.0, please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress doesn't see custom cy. commands - Stack Overflow
I wanted to have type support in the VS Code as well as I didn't want to face cypress Property does not exist...
Read more >
session - Cypress Documentation
The cy.session() command will inherit the testIsolation value to determine whether or not the page is cleared when caching and restoring the browser...
Read more >
TypeScript - Cypress Documentation
Cypress ships with official type declarations for TypeScript. This allows you to write your tests in TypeScript. Install TypeScript To use TypeScript.
Read more >
request - Cypress Documentation
If you do not provide a fully qualified domain. ... Whether to convert the body values to URL encoded content and set the...
Read more >
Changelog - Cypress Documentation
Fixed an issue where the query object was not available on requests from cy.intercept() once ... Fixes #24652; Fixed TypeScript types for testIsolation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found