So it copied the function code I wanted to test into the mock, and used a flag to decide whether to execute the copied code or return a mocked value...
so absolutely not testing the code that will run in prod
So it copied the function code I wanted to test into the mock, and used a flag to decide whether to execute the copied code or return a mocked value...
so absolutely not testing the code that will run in prod