Implementing Barcode Scanning in Microsoft Teams Apps

If you are building a Microsoft Teams app and want to integrate barcode or QR code scanning, the setup process is quite straightforward. However, there is a crucial API caveat developers need to be aware of when choosing between the newer and legacy scanning functions.

While Microsoft has introduced newer API surfaces for this feature, these don’t seem ready for real-world application. Here is a pragmatic approach to ensure a reliable implementation in production.

Continue reading Implementing Barcode Scanning in Microsoft Teams Apps

Testing Azure Functions v4 Node & TypeScript with Jest

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