From c9f6ea141be94cf7bcae4470d61d72071dc3ae27 Mon Sep 17 00:00:00 2001 From: Elias Meire Date: Mon, 20 Nov 2023 09:26:25 +0100 Subject: [PATCH] fix: Include cypress TypeScript types in /cypress folder (no-changelog) (#7746) --- cypress/tsconfig.json | 8 ++++++-- tsconfig.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index 61b0e504a3..26a5da716b 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../tsconfig.json", "compilerOptions": { + "sourceMap": false, "declaration": false, - "sourceMap": false - } + "lib": ["esnext", "dom"], + "types": ["cypress", "node"] + }, + "include": ["**/*.ts"], + "exclude": ["**/dist/**/*", "**/node_modules/**/*"] } diff --git a/tsconfig.json b/tsconfig.json index d1a4a4d263..f37b693003 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,6 +20,6 @@ "sourceMap": true, "skipLibCheck": true }, - "exclude": ["**/dist/**/*", "**/node_modules/**/*"], + "exclude": ["**/dist/**/*", "**/node_modules/**/*", "cypress"], "files": ["node_modules/jest-expect-message/types/index.d.ts"] }