diff --git a/packages/expo/src/generators/application/files/base/tsconfig.app.json.template b/packages/expo/src/generators/application/files/base/tsconfig.app.json.template index 80217c0f62c44b..2468095e37c907 100644 --- a/packages/expo/src/generators/application/files/base/tsconfig.app.json.template +++ b/packages/expo/src/generators/application/files/base/tsconfig.app.json.template @@ -5,6 +5,17 @@ "types": ["node"] }, "files": ["<%= offsetFromRoot %>node_modules/@nx/expo/typings/svg.d.ts"], - "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.spec.tsx", "src/test-setup.ts"], + "exclude": [ + "jest.config.ts", + "jest.config.js" + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + ], "include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"] } diff --git a/packages/expo/src/generators/library/files/lib/tsconfig.lib.json.template b/packages/expo/src/generators/library/files/lib/tsconfig.lib.json.template index c0b1d9caa18178..934f3d18b2e2f6 100644 --- a/packages/expo/src/generators/library/files/lib/tsconfig.lib.json.template +++ b/packages/expo/src/generators/library/files/lib/tsconfig.lib.json.template @@ -4,6 +4,17 @@ "outDir": "<%= offsetFromRoot %>dist/out-tsc", "types": ["node"] }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "src/test-setup.ts"], + "exclude": [ + "jest.config.ts", + "jest.config.js" + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + ], "include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"] } diff --git a/packages/react-native/src/generators/application/files/app/tsconfig.app.json.template b/packages/react-native/src/generators/application/files/app/tsconfig.app.json.template index 7b33f4033a0e31..5a9484c297a80d 100644 --- a/packages/react-native/src/generators/application/files/app/tsconfig.app.json.template +++ b/packages/react-native/src/generators/application/files/app/tsconfig.app.json.template @@ -5,6 +5,15 @@ "types": ["node"] }, "files": ["<%= offsetFromRoot %>node_modules/@nx/react-native/typings/svg.d.ts"], - "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.spec.tsx", "src/test-setup.ts"], + "exclude": [ + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + ], "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx"] } diff --git a/packages/react-native/src/generators/library/files/lib/tsconfig.lib.json.template b/packages/react-native/src/generators/library/files/lib/tsconfig.lib.json.template index 46ea2879e7c5f3..86ee61cc00a77f 100644 --- a/packages/react-native/src/generators/library/files/lib/tsconfig.lib.json.template +++ b/packages/react-native/src/generators/library/files/lib/tsconfig.lib.json.template @@ -4,6 +4,15 @@ "outDir": "<%= offsetFromRoot %>dist/out-tsc", "types": ["node"] }, - "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.spec.tsx", "src/**/*.test.ts", "src/**/*.test.tsx", "src/test-setup.ts"], + "exclude": [ + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + ], "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"] }