labnol / apps-script-starter

Setup a local development environment inside Visual Studio Code and build Google Workspace add-ons with Google Apps Script
https://www.youtube.com/watch?v=KxdCIbeO4Uk
MIT License
1.1k stars 176 forks source link

mocha test framework #46

Closed jwermuth closed 3 years ago

jwermuth commented 3 years ago

Adding mocha tests as response to #9

jwermuth commented 3 years ago

Hi @labnol I created this PR in response to your "help wanted" label. Do you have time to comment/review.

jwermuth commented 3 years ago

Hi again @labnol. After some input at #9 I have tried out jest as alternative to mocha. I agree with @votungphan [comment])(https://github.com/labnol/apps-script-starter/issues/9#issuecomment-790407673) that jest simple and feature rich. Furthermore I found it easier to configure, so I decided to go with jest only in other projects. I will close this PR and replace it with a new one where jest is implemented instead of mocha.