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...
RickyKirkham
Microsoft
Nov 19, 2021TDahlem and TimBeese We now have documentation for unit testing and mocking in add-ins. Please see Unit testing in Office Add-ins