Mocha with Typescript

  • In mocha, every describe() should use an anonymous function (not arrow function) to bind the this, for this.beforeAll().
  • Fail a test in Mocha. With assert , use assert.fail().