Currently, there is no documentation or any model to follow about unit testing and mocking with Office-js. Using standards approaches like Sinon or Jest proves challenging because office-js API needs...
Igor_Ribeiro
Microsoft
Nov 10, 2021Hi TDahlem, Microsoft just published a package to help unit testing.
Please check Office Addin Mock that is now the standard way to create unit tests for the Office JavaScript API.