Skip to content

UseCompatibleTypes.Tests & UseCompatibleCommands.Tests test failed. #1695

Closed
@t-lipingma

Description

@t-lipingma

Steps to reproduce

cd PSScriptAnalyzer
./build.ps1 -All
Import-Module .\out\PSScriptAnalyzer\PSScriptAnalyzer.psd1
./build.ps1. -Test

Expected behavior

all tests pass.

Actual behavior

image

image

RuntimeException: A null key is not allowed in a hash literal.
UseCompatibleTypes.Tests.ps1& UseCompatibleCommands.Tests.ps1 failed.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.19041.1023
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1023
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PesterVersion  5.2.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions