Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update help and tests to use parantheses around type input in BeOfType assertions #2608

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

fflaten
Copy link
Collaborator

@fflaten fflaten commented Jan 16, 2025

PR Summary

Adds an example to -BeOfType using TypeInfo as input. Types has to be wrapped with parantheses to avoid PowerShell from making it a string argument which might not resolve for PowerShell classes and internal types.

Fix #2414

PR Checklist

  • PR has meaningful title
  • Summary describes changes
  • PR is ready to be merged
    • If not, use the arrow next to Create Pull Request to mark it as a draft. PR can be marked Ready for review when it's ready.
  • Tests are added/update (if required)
  • Documentation is updated/added (if required)

@nohwnd nohwnd merged commit e4a21df into pester:main Jan 17, 2025
11 checks passed
@fflaten fflaten deleted the beoftype-example branch January 17, 2025 21:39
@fflaten
Copy link
Collaborator Author

fflaten commented Jan 17, 2025

/backport to rel/5.x.x

Copy link

Started backporting to rel/5.x.x: https://github.com/pester/Pester/actions/runs/12837297058

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BeOfType doesn't see types, loaded from a file with classes, but the "It" function - does
2 participants