mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +00:00
fix(process): recognize repo-relative Dart test paths
This commit is contained in:
parent
ac68f5254c
commit
6182fe1202
1 changed files with 6 additions and 1 deletions
|
|
@ -176,10 +176,15 @@ export function isTestFile(filePath: string): boolean {
|
|||
p.includes('.spec.') ||
|
||||
p.includes('__tests__/') ||
|
||||
p.includes('__mocks__/') ||
|
||||
// Generic test folders
|
||||
// Generic test folders. Repo-relative paths can start with these folders.
|
||||
p.startsWith('test/') ||
|
||||
p.startsWith('tests/') ||
|
||||
p.startsWith('testing/') ||
|
||||
p.includes('/test/') ||
|
||||
p.includes('/tests/') ||
|
||||
p.includes('/testing/') ||
|
||||
// Dart/Flutter test pattern
|
||||
p.endsWith('_test.dart') ||
|
||||
// Python test patterns
|
||||
p.endsWith('_test.py') ||
|
||||
p.includes('/test_') ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue