You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is a good question, due to some limitations i am unable to mock some functions or commands, being command one of those.
Also I cannot mock the "runtime" created functions, so if you place a function inside your function in a nested scope, being that nested function the last one, it disables all the others.
I have to add some small features, like the possibility to use a custom function instead of a evaluated string, but other features might be a good call to arms if you want to help. Some help would be really nice.
If you have any idea or want to fiddle around and get in a point further where i did get i would be really grateful.
How would you mock a command that's ran with
command
?Given a function that's under test
And you want to mock
ls
for example.Doing
mock ls 0 "echo foo"
doesn't work, and mockingcommand
is not possible because it's blacklisted.The text was updated successfully, but these errors were encountered: