I implemented a set of unit tests in Jest for my Azure Function
https://www.damirscorner.com/blog/posts/20260619-WritingTestsForHttpTriggeredAzureFunctions.html

Writing tests for HTTP-triggered Azure Functions
As I was implementing redirects in Azure Functions for my blog, I wanted to be able to test them as efficiently as possible. Although you can run and test an Azure function locally, and I did, I also implemented automated unit tests to systematically cover all the cases I care about.





