Skip to content

Commit 3716e23

Browse files
authored
Merge pull request #7 from Tasin5541/test-file-extension
update: test file extensions
2 parents 402a695 + eae1025 commit 3716e23

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)