Skip to content

AboutPSProviders.Koans.ps1 - thows errors (may be unavoidable)Β #455

@DEberhardt

Description

@DEberhardt

Describe "Koan Bug, Issue, or Help Request"

AboutPSProviders.Koans.ps1

Context "The Problematic Assertions"

Invoke-Koan : This command cannot find a matching alias because an alias with the definition '____' does not exist.
At C:\Users\David\Documents\WindowsPowerShell\Modules\PSKoans\0.67.1\Public\Get-Karma.ps1:111 char:32
+                 $PesterTests = Invoke-Koan @{
+                                ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (____:String) [Invoke-Koan], ItemNotFoundException
    + FullyQualifiedErrorId : ItemNotFoundException,Invoke-Koan

Invoke-Koan : Cannot find drive. A drive with the name 'TEMP' does not exist.
At C:\Users\David\Documents\WindowsPowerShell\Modules\PSKoans\0.67.1\Public\Get-Karma.ps1:111 char:32
+                 $PesterTests = Invoke-Koan @{
+                                ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (TEMP:String) [Invoke-Koan], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound,Invoke-Koan


    Welcome, seeker of enlightenment.
    Let us observe your karma...

Describing "Alias Provider" has damaged your karma.

Context "Your Attempts"

None to resolve directly. Don't know enough about this to dig though this yet πŸ˜„

Context "Additional Information"

The relevant function in Get-Karma

# Execute in a fresh scope to prevent internal secrets being leaked
$PesterTests = Invoke-Koan @{
    Script   = $KoanFile.Path
    PassThru = $true
    Show     = 'None'
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions