Skip to content

Commit

Permalink
Use old moduleResolution for Cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Aug 3, 2023
1 parent 682ea86 commit ec65a62
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions tsconfig.json
@@ -1,6 +1,19 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "eslint-config-upleveled/tsconfig.base.json",
"compilerOptions": {
"jsx": "preserve"
},
// Old "moduleResolution": "Node" option required for Cypress
// https://github.com/cypress-io/cypress/issues/26308#issuecomment-1663592648
//
// TODO: Remove when issue is resolved https://github.com/cypress-io/cypress/issues/27448
"ts-node": {
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node"
}
},
"include": [
"**/.eslintrc.cjs",
"**/*.ts",
Expand All @@ -11,8 +24,5 @@
"**/*.mjs",
".next/types/**/*.ts",
"next-env.d.ts"
],
"compilerOptions": {
"jsx": "preserve"
}
]
}

0 comments on commit ec65a62

Please sign in to comment.