Skip to content

Migration tips for Should -Not -Throw #411

Description

@fflaten

Should -Not -Throw is not migrated at this point. You can replace it with invoking the scriptblock, as any exception will fail the test by default. There's was a few comments about it in this issue but we should update our migration docs.

Originally posted by @fflaten in pester/Pester#2847 (comment)

Also, the should-migration skill mentions it, but is missing an invocation operator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions