Skip to content

Commit c86859b

Browse files
committed
Properly exclude test files from typechecking
1 parent 2104594 commit c86859b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/utils/verifyTypeScriptSetup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function verifyTypeScriptSetup() {
133133
);
134134
}
135135
if (tsconfig.exclude == null) {
136-
tsconfig.exclude = ['**/__tests__/**', '**/?*(spec|test).*'];
136+
tsconfig.exclude = ['**/__tests__/**', '**/?*test.*', '**/?*spec.*'];
137137
messages.push(`${chalk.cyan('exclude')} should exclude test files`);
138138
}
139139

0 commit comments

Comments
 (0)