From 81fd11ee628a17a9cc5259f7a2534bd1b05045ce Mon Sep 17 00:00:00 2001 From: David Date: Fri, 21 Oct 2022 15:57:53 +0200 Subject: [PATCH] Fix tests typings (#140) --- cypress/tsconfig.json | 21 ++------------------- tests/tsconfig.json | 14 ++++++++++++++ tsconfig.json | 5 +---- 3 files changed, 17 insertions(+), 23 deletions(-) create mode 100644 tests/tsconfig.json diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index cb32b66..05e81a9 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,30 +1,13 @@ { + "extends": "../tsconfig.json", "compilerOptions": { "isolatedModules": false, - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "jsx": "preserve", "types": [ "cypress", "@testing-library/cypress" ] }, "include": [ - "../node_modules/cypress", - "../node_modules/@testing-library/cypress", - "./*/*.ts" + "." ] } diff --git a/tests/tsconfig.json b/tests/tsconfig.json new file mode 100644 index 0000000..1a176cd --- /dev/null +++ b/tests/tsconfig.json @@ -0,0 +1,14 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "types": [ + "jest", + "@testing-library/jest-dom", + "@testing-library/react", + "@testing-library/user-event" + ] + }, + "include": [ + "." + ] +} diff --git a/tsconfig.json b/tsconfig.json index 600dd7d..76cc37e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,9 +29,6 @@ "**/*.tsx" ], "exclude": [ - "node_modules", - "**/*.test.ts", - "**/*.test.tsx", - "cypress" + "node_modules" ] }