when use dbachecks, it has error: unable to find type [Pester.outputtypes]

Welcome Forums Pester when use dbachecks, it has error: unable to find type [Pester.outputtypes]

Viewing 4 reply threads
  • Author
    Posts
    • #273951
      Participant
      Topics: 1
      Replies: 1
      Points: 13
      Rank: Member

      the code I’ve entered is below:

      Result:

      Unable to find type [Pester.OutputTypes].
      At line:219 char:9
      + [Pester.OutputTypes]$Show = ‘All’
      + ~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : InvalidOperation: (Pester.OutputTypes:TypeName) [], RuntimeException
      + FullyQualifiedErrorId : TypeNotFound

       

      Can anyone help ?

       

      thanks

       

      Hui

       

    • #273978
      Senior Moderator
      Topics: 9
      Replies: 1449
      Points: 5,426
      Helping Hand
      Rank: Community MVP

      What is the pester version you have ? There are major changes in version 5.x

    • #274092
      Participant
      Topics: 1
      Replies: 1
      Points: 13
      Rank: Member

      version 3.4.0

    • #274521
      Senior Moderator
      Topics: 9
      Replies: 1449
      Points: 5,426
      Helping Hand
      Rank: Community MVP

      Try upgrading to Pester 4.x version. 3.4.0 is pretty old.

    • #276036
      Inactive
      Topics: 0
      Replies: 1
      Points: 0
      Rank: Member

      I had the same issue and installing pester 4.9 resolved it for me.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.