Skip to content

v9 of the task to may import Pester v5 on a box with it installed #33

@kilasuit

Description

@kilasuit

I noticed this in recent troubleshooting of an internal issue on our build boxes (we don't use the hosted agents)
Seems that this default value

[string]$TargetPesterVersion = "latest"

will then have an impact on potentially importing pester at this point
Import-Pester -Version $TargetPesterVersion

I propose to fix this with some additional defensive coding just to be sure that Pester v5 will never accidentally import

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions