T2478
Experimenting with arcanist to run jest unit tests as part of arc diff
It's probable that I simply dived down the wrong path, i.e. perhaps arc unit is not the right place for this, however the ongoing support for jest-phabricator and its available docs suggests this is the production way to do this.
I've run into some issues -- this diff got the unit tests to run, and only on impacted files --- however the results are not able to be parsed by JestUnitTestEngine.php (provided by jest-phabricator documentation), leading to jest printing Pass and arcanist failing the tests.
While it is annoying to use two different systems to run automated preflight checks --- arc lint and husky --- husky is the most popular way to handle this on javascript and React apps. It also plays nice with lerna and lint-staged (https://www.npmjs.com/package/lint-staged) to target only changed files.
Importantly, husky is already working and available documentation makes it easy to maintain.
My recommendation is to continue using husky unless I'm just missing something dumb in my this arcanist attempt.