Skip to content

Commit

Permalink
Merge pull request #7 from Tasin5541/test-file-extension
Browse files Browse the repository at this point in the history
update: test file extensions
  • Loading branch information
dub-flow authored Oct 9, 2023
2 parents 402a695 + eae1025 commit 3716e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func IsCommonTestFolder(path string) bool {

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

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

0 comments on commit 3716e23

Please sign in to comment.