Skip to content

TestFramework

David Liu edited this page Apr 5, 2023 · 10 revisions

Mocha

Why Mocha

  • No configuration required
  • Smart align to nodejs (esm)

Why not mocha

  • ts-mocha is not recognized by Webstorm
  • No simple way to configure for mocha test framework for Typescript

JEST

Why Jest

  • It takes care both nodejs and typescript
  • It is widely used in Meta

Notes

  • Replace assert.equal with assert.strictEqual
Clone this wiki locally