diff --git a/Base/usr/share/man/man1/test-js.md b/Base/usr/share/man/man1/test-js.md index cbf5577bb2..d1a6be034e 100644 --- a/Base/usr/share/man/man1/test-js.md +++ b/Base/usr/share/man/man1/test-js.md @@ -5,7 +5,7 @@ test-js - run the LibJS test suite ## Synopsis ```**sh -$ test-js [options...] +$ test-js [options...] [path] ``` ## Description @@ -14,9 +14,18 @@ $ test-js [options...] tests are using a custom JavaScript testing framework inspired by [Jest](https://jestjs.io) (see [`test-common.js`](/home/anon/js-tests/test-common.js)). +It also supports the [test262 parser tests](https://github.com/tc39/test262-parser-tests). + +The test root directory is assumed to be `/home/anon/js-tests`, or `$SERENITY_ROOT/Libraries/LibJS/Tests` +when using the Lagom build. Optionally you can pass a custom path to `test-js` to override these defaults. + +You can disable output from `dbg()` calls by setting the `DISABLE_DBG_OUTPUT` environment variable. + ## Options * `-t`, `--show-time`: Show duration of each test +* `-g`, `--collect-often`: Collect garbage after every allocation +* `--test262-parser-tests`: Run test262 parser tests ## Examples