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