-
Notifications
You must be signed in to change notification settings - Fork 1
TestFramework
David Liu edited this page Jul 25, 2024
·
10 revisions
- No configuration required
- Smart align to nodejs (esm)
-
ts-mocha
is not recognized by Webstorm - No simple way to configure for mocha test framework for Typescript
- https://github.com/davidkhala/ts-template/issues/1
- default test folder:
__tests__
. see in https://jestjs.io/docs/configuration#testregex-string--arraystring
- It takes care both nodejs and typescript
- It is widely used in Meta
-
ECMAScript Modules is disabled by default
- under Preview (06-Apr-2023)
HTTP assertions
- powered by superagent.
- Replace
assert.equal
withassert.strictEqual