Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow choice between JavaScript and TypeScript for E2E scaffolding #27621

Open
MikeMcC399 opened this issue Aug 22, 2023 · 1 comment
Open

Allow choice between JavaScript and TypeScript for E2E scaffolding #27621

MikeMcC399 opened this issue Aug 22, 2023 · 1 comment
Labels
E2E Issue related to end-to-end testing type: feature New feature that does not currently exist

Comments

@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Aug 22, 2023

This is an enhancement request.

What would you like?

If Cypress determines that a new project can be scaffolded using TypeScript, it should allow the user to choose between setting up a JavaScript project and setting up a Typescript project.

Why is this needed?

If the npm module typescript is installed, then Cypress automatically scaffolds a new E2E project using TypeScript without asking the user if they would like JavaScript or TypeScript. This is not necessarily what the user would want.

Steps to reproduce

mkdir cy-ts-test
cd cy-ts-test
git init
npm init -y
npm install typescript -D -E
npm install cypress -D -E
npx cypress open --e2e --browser electron

Note the Configuration files screen showing TypeScript files automatically being configured with no choice being given.

ts setup

Related issues

@nagash77 nagash77 added type: feature New feature that does not currently exist E2E Issue related to end-to-end testing labels Aug 23, 2023
@MikeMcC399
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E Issue related to end-to-end testing type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants