Skip to content

Commit 178543b

Browse files
fix(tsconfig): exclude test files from production TypeScript build
TypeScript 6.x was picking up *.test.tsx, *.spec.tsx, setupTests*, and __tests__/** files during the build, causing errors for test-only type deps (@types/jest, @testing-library/*) that aren't in production deps. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c596cd4 commit 178543b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

hpux-prototypes/tsconfig.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
"dist",
3838
"**/*.bundle.js",
3939
"**/*.map",
40-
"src/app/prototypes/shiri-alerting-ui-v2/data/monitoring-plugin"
40+
"src/app/prototypes/shiri-alerting-ui-v2/data/monitoring-plugin",
41+
"**/*.test.ts",
42+
"**/*.test.tsx",
43+
"**/*.spec.ts",
44+
"**/*.spec.tsx",
45+
"**/__tests__/**",
46+
"**/setupTests*",
47+
"**/__mocks__/**"
4148
]
4249
}

0 commit comments

Comments
 (0)