Skip to content

Allow choice between JavaScript and TypeScript for E2E scaffolding #27621

@MikeMcC399

Description

@MikeMcC399

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2EIssue related to end-to-end testingtype: featureNew feature that does not currently exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions