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

the code I’ve entered is below:

invoke-dbcCheck

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

 

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

version 3.4.0

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

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