Skip to content

Commit 3dfeeb9

Browse files
committed
chore: add regression tests for cypress projects that previously did not work but now do with tsx
1 parent f819a48 commit 3dfeeb9

File tree

11 files changed

+1300
-1
lines changed

11 files changed

+1300
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Notes
2+
3+
Does not run in Cypress 14.3.1 and under due to `extends` configuration resolution not working correctly with `ts-node`. This would fail with `'Unknown file extension ".ts'`See [ts-node 2100](https://github.com/TypeStrong/ts-node/issues/2100) and PR [#31520](https://github.com/cypress-io/cypress/pull/31520) where this was fixed for Cypress via moving to `tsx`.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: { supportFile: false },
5+
})
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"devDependencies": {
3+
"typescript": "^5.8.3"
4+
},
5+
"projectFixtureDirectory": "simple_passing"
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"./tsconfig.base.json"
4+
]
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
typescript@^5.8.3:
6+
version "5.8.3"
7+
resolved "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e"
8+
integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Notes
2+
3+
Does not run in Cypress 14.3.1 and under due to `ts-node` trying to set `module` equal to `commonjs` when we are dealing with an ESM. See issue [#27359](https://github.com/cypress-io/cypress/issues/27359) and PR [#31520](https://github.com/cypress-io/cypress/pull/31520) where this was fixed by moving to `tsx`.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: { supportFile: false },
5+
})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"typescript": "5.6.3"
4+
},
5+
"type": "module",
6+
"projectFixtureDirectory": "simple_passing"
7+
}

0 commit comments

Comments
 (0)