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
    Posts
    • #254453
      Participant
      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,

      M.

      • This topic was modified 2 weeks, 5 days ago by blindzero.
    • #254762
      Senior Moderator
      Topics: 9
      Replies: 1309
      Points: 4,783
      Helping Hand
      Rank: Community Hero

      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.