pester / Pester

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

Add OutputType to improve tab-completion/intellisense #2519

Closed fflaten closed 3 months ago

fflaten commented 3 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