Skip to content

How to mock "redirect to file"? #2075

Answered by fflaten
Andy-AO asked this question in Q&A
Sep 7, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Redirect operators aren't commands, but features in the language engine. You can't mock them. Mocking only works for commands that you can see with Get-Command.

Can you say more about why you would need this?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Andy-AO
Comment options

@fflaten
Comment options

@Andy-AO
Comment options

Answer selected by Andy-AO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants