Run (simple) Mocha tests in Hermes using a tiny Mocha and Chai (poly/*)fill.
- Add test to
tests/
, replace imports with fills dir (mocha
->../fills/mocha.js
, etc) - Run with Node to check (
node tests/yourTest.js
) - Run
esbuild --bundle tests/yourTest.js > out.js
hermes out.js
- Profit
tests/
are included as example from spitroast.