To write and run tests for Azure Functions with Node / Typescript, we need a bit of extra setup. We’ll start with a new function project with an http trigger and then add the required dependencies:
npm install --save-dev jest typescript ts-jest @types/jest ts-node
I added ts-node as an additional dependency which is not listed in the ts-jest Getting started but required to run the tests.
Continue reading Testing Azure Functions v4 Node & TypeScript with Jest