youtube image
From YouTube: Unit testing Office JavaScript with Office-Addin-Mock library

Description

In this 9-minute Developer-focused demo, Igor Ribeiro delivers an inside view of a new NPM library to facilitate unit testing. The tools provide a way to unit test the Office JavaScript API and does not depend on the presence of Office on the dev machine. Compatible with major unit testing JavaScript frameworks, such as Mocha or Jest. Supports all Office hosts. Works for JavaScript and TypeScript. Office Addin Mock along with test examples are available now. Future work items called out. This PnP Community demo is taken from the Office Add-ins community call – November 2021, recorded on November 10, 2021.

Demo Presenter: Igor Ribeiro (Microsoft)

Supporting documents:
• NPM - Office-Addin-Mock | https://www.npmjs.com/package/office-addin-mock
• Repo - Test Examples | https://github.com/OfficeDev/Office-Addin-TaskPane/tree/master/test/unit
• Issues – GitHub Issues | https://github.com/OfficeDev/Office-Addin-Scripts/issues

Stay connected:
• Learn more about the Microsoft 365 Patterns and Practices community at: http://aka.ms/m365pnp
• Visit the Microsoft 365 Patterns and Practices community YouTube channel: https://aka.ms/m365pnp/videos