(method: string | undefined)
| 41 | } |
| 42 | |
| 43 | function normalizeSelectorMethodName(method: string | undefined): string | undefined { |
| 44 | if (!method) { |
| 45 | return undefined; |
| 46 | } |
| 47 | |
| 48 | return method.replace(/\(\)$/, ''); |
| 49 | } |
| 50 | |
| 51 | function parseSelector(raw: string): TestSelector | null { |
| 52 | const parts = raw.split('/').filter(Boolean); |