Skip to content

Commit

Permalink
update: test file extensions
Browse files Browse the repository at this point in the history
added 4 new extensions: .spec.tsx, .test.ts, .spec.jsx, .test.jsx
  • Loading branch information
Tasin5541 committed Oct 9, 2023
1 parent 402a695 commit eae1025
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 eae1025

Please sign in to comment.