[lang-ref] ( get_caller_file_path ) ( powershell )
It 'should get caller file path' {
# Get-PSCallStack
function Get-CallerFilePath {
(Get-PSCallStack)[1].ScriptName
}
Get-CallerFilePath | Should -Match 'test\\RuntimeInfo\\SourceInfo\.Tests\.ps1$'
}