mocha testing-library code example Example 1: what is mocha js Mocha is javascript test framework! Example 2: how to run mocha tests form a file $ mocha -g 'logs a'