Skip to content

optimize how we get session state #2703

@nohwnd

Description

@nohwnd
# get Greeter's session state — Pester.Scoping.ps1:16-17
$targetSessionState = & (Get-Module Greeter) { 
    $ExecutionContext.SessionState 
}

But we can do (Get-Module Greeter).SessionState, it's public property === faster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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