Skip to content

Commit 7231285

Browse files
committed
Properly exclude test files from typechecking
1 parent 6b010b0 commit 7231285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js

+1-1
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)