[Feature Request]: Code optimization - retrieve module relative path through dedicated function
Open
[cat] testing
enhancement
- Dominant language
- PowerShell
- Stars
- 737
- Forks
- 436
- Avg merge
- 10d 7h
- Merged PRs (30d)
- 1
Description
### Description
Implement helper function to retrieve the module relative path given the full path, e.g., `Get-FormattedModuleRelativePath`
Replace lines like
```powershell
$moduleRelative = $moduleRoot.Replace('\', '/').split('modules/')[1]
```
used e.g., by Pester test, with a call to that function
Contributor guide
Assessment
This issue has not been assessed yet.