How do I mock Deno built-in methods like Deno.Command()?
I have a method that triggers an external binary. For testing, I would like to mock the specific Deno.Command()
call and control the values “returned” from the external command. How can I mock methods on the Deno object?
How do I mock Deno built-in methods like Deno.Command()?
I have a method that triggers an external binary. For testing, I would like to mock the specific Deno.Command()
call and control the values “returned” from the external command. How can I mock methods on the Deno object?
How do I mock Deno built-in methods like Deno.Command()?
I have a method that triggers an external binary. For testing, I would like to mock the specific Deno.Command()
call and control the values “returned” from the external command. How can I mock methods on the Deno object?