Can’t find type [PesterConfiguration] in Azure DevOps pipeline

Welcome Forums Pester Can’t find type [PesterConfiguration] in Azure DevOps pipeline

Viewing 1 reply thread
  • Author
    • #254453
      Topics: 2
      Replies: 2
      Points: 28
      Rank: Member

      I can’t initialize $PesterConfiguration in v5 style by using

      I get the error

      I am using  vmImage: 'windows-latest' in a Azure Devops pipeline and update Pester to 5.0.1 using PSDepend.

      This seems to be successfull:

      <p class=”lang-bsh prettyprint prettyprinted urvanov-syntax-highlighter-selected”>I can’t understand why it can not find the type, locally it is working completely fine with this.</p>
      Best & Thanks,


      • This topic was modified 2 months, 3 weeks ago by blindzero.
    • #254762
      Senior Moderator
      Topics: 9
      Replies: 1410
      Points: 5,236
      Helping Hand
      Rank: Community MVP

      I use the same version of Windows 10 (not a VM), hence the same PowerShell version, but using Pester 5.0.3. I couldn’t reproduce this.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.