Skip to content

Commit eae1025

Browse files
committed
update: test file extensions
added 4 new extensions: .spec.tsx, .test.ts, .spec.jsx, .test.jsx
1 parent 402a695 commit eae1025

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func IsCommonTestFolder(path string) bool {
131131

132132
// check for common test files (like .spec.js)
133133
func IsTestFile(path string) bool {
134-
testExtensions := []string{".spec.ts", ".test.tsx", ".spec.js", ".test.js"}
134+
testExtensions := []string{".spec.ts", ".spec.tsx", ".test.ts", ".test.tsx", ".spec.js", ".spec.jsx", ".test.js", ".test.jsx"}
135135

136136
for _, element := range testExtensions {
137137
if strings.HasSuffix(path, element) {

0 commit comments

Comments
 (0)