cypress-io / cypress-documentation

Cypress Documentation for the Cypress App, API, Cypress Cloud, UI Coverage and Cypress Accessibility.
https://docs.cypress.io
MIT License
955 stars 1.05k forks source link

Typescript for >=v10 #5262

Open melibe23 opened 1 year ago

melibe23 commented 1 year ago

Subject

Guidelines

Description

I only see reference for <10 version of Cypress here, https://docs.cypress.io/guides/tooling/typescript-support#Types-for-custom-commands, is written someplace else?

MikeMcC399 commented 1 year ago

@elylucas

Some comments from my side:

The default file listed in Cypress Legacy configuration is index.js (TypeScript is not mentioned). This is the filename being used in https://docs.cypress.io/guides/tooling/typescript-support#Types-for-custom-commands.

In Cypress current configuration the default e2e support file is cypress/support/e2e.{js,jsx,ts,tsx} and for component testing cypress/support/component.js (no mention of TypeScript).

In Examples

In Clashing types with Jest

MikeMcC399 commented 9 months ago