From 9dfcd51fa3cdde3cb6e0becdcdff9a67793d8f49 Mon Sep 17 00:00:00 2001 From: Emil Litwiniec <39130679+emil-litwiniec@users.noreply.github.com> Date: Fri, 17 May 2024 11:29:40 +0200 Subject: [PATCH] fix: Missing *.spec.tsx pattern in multiple tsconfig.spec.json files (#557) --- packages/webapp-libs/webapp-contentful/tsconfig.spec.json | 1 + packages/webapp-libs/webapp-core/tsconfig.json | 4 +--- packages/webapp-libs/webapp-core/tsconfig.spec.json | 5 +++-- packages/webapp-libs/webapp-emails/tsconfig.spec.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/webapp-libs/webapp-contentful/tsconfig.spec.json b/packages/webapp-libs/webapp-contentful/tsconfig.spec.json index 3bc25e0a4..d681ae05b 100644 --- a/packages/webapp-libs/webapp-contentful/tsconfig.spec.json +++ b/packages/webapp-libs/webapp-contentful/tsconfig.spec.json @@ -11,6 +11,7 @@ "jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts", + "src/**/*.spec.tsx", "src/**/*.d.ts", "src/tests/**/*.ts", "src/tests/**/*.tsx" diff --git a/packages/webapp-libs/webapp-core/tsconfig.json b/packages/webapp-libs/webapp-core/tsconfig.json index 08045a3b6..8122543a9 100644 --- a/packages/webapp-libs/webapp-core/tsconfig.json +++ b/packages/webapp-libs/webapp-core/tsconfig.json @@ -7,9 +7,7 @@ "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, - "types": ["@testing-library/jest-dom"], - "noFallthroughCasesInSwitch": true, - "jsx": "react-jsx" + "noFallthroughCasesInSwitch": true }, "files": [], "include": [], diff --git a/packages/webapp-libs/webapp-core/tsconfig.spec.json b/packages/webapp-libs/webapp-core/tsconfig.spec.json index 911982d5b..e4494aac1 100644 --- a/packages/webapp-libs/webapp-core/tsconfig.spec.json +++ b/packages/webapp-libs/webapp-core/tsconfig.spec.json @@ -4,7 +4,8 @@ "outDir": "../../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node", "@types/gtag.js"], - "esModuleInterop": true + "esModuleInterop": true, + "jsx": "react-jsx" }, - "include": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts", "src/**/*.d.ts"] + "include": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.tsx", "src/**/*.spec.ts", "src/**/*.d.ts"] } diff --git a/packages/webapp-libs/webapp-emails/tsconfig.spec.json b/packages/webapp-libs/webapp-emails/tsconfig.spec.json index 0b401fc0c..640e830ad 100644 --- a/packages/webapp-libs/webapp-emails/tsconfig.spec.json +++ b/packages/webapp-libs/webapp-emails/tsconfig.spec.json @@ -7,5 +7,5 @@ "esModuleInterop": true, "jsx": "react-jsx" }, - "include": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts", "src/**/*.d.ts"] + "include": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.tsx", "src/**/*.spec.ts", "src/**/*.d.ts"] }