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
Sep 09, 2021Thanks a lot for the comments TimBeese,
I do agree that the approach of creating Dumb Classes work, but it is not very scalable and requires a lot of time just to code it. Also, having to change the mock classes is not ideal as well.
We are working on providing a better and easier experience than that.
Thanks for the suggestions!