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

Support cypress.config.mts #24962

Open
lmiller1990 opened this issue Dec 5, 2022 · 0 comments
Open

Support cypress.config.mts #24962

lmiller1990 opened this issue Dec 5, 2022 · 0 comments
Labels
type: feature New feature that does not currently exist

Comments

@lmiller1990
Copy link
Contributor

What would you like?

mts (which is ESM using TS extension) is a thing now, and we should support it, eg cypress.config.mts.

Docs: https://www.typescriptlang.org/docs/handbook/esm-node.html#new-file-extensions

Not sure of the implications here, in general mts will be compiled to mjs, and cts to cjs.

Why is this needed?

Support a format that is becoming more widely used.

Other

Node.js module system is quite confusing, make sure to add tests here https://github.com/cypress-io/cypress/blob/develop/system-tests/test/config_modules_spec.ts

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

No branches or pull requests

3 participants