pester / Pester

Pester is the ubiquitous test and mock framework for PowerShell.
https://pester.dev/
Other
3.11k stars 473 forks source link

Add OutputType to improve tab-completion/intellisense #2519

Closed fflaten closed 4 months ago

fflaten commented 5 months ago

PR Summary

Defines OutputType for functions returning typed objects to enable tab-completion/intellisense while writing code without executing it. Especially useful for New-PesterConfiguration when writing quick demos.

Note: Tab-completion currently ignores ParameterSet defined in [OutputType], so no need to split them in e.g. ConvertTo-*UnitReport

PR Checklist