Basic mocha and chai boilerplate

Boilerplate on Github.

Couple days ago I was asked to write very basic API tests for a project. That project uses javascript and obviously would be right to use same language for testing. Few engineers from that project said they have experience with mocha and chai . So, we decided to use this stack in tests, though it’s not an edge stack (like jest for example).

Boilerplate supports Typescript and CI (Gitlab/Github). As example there is one test for GitHub API.

If you need something very basic and easy to start writing javascript tests give that boilerplate a chance.

Leave a Reply

Your email address will not be published. Required fields are marked *