I think this issue should belong to egg-bin repo, but that repo is no abled to create any issue now. So I posted it here.
egg-bin test support all argv of mocha.
try egg-bin test --watch or npm run test-local -- --watch
currently egg-bin test is only support mocha, you can extend egg-bin to my-egg-bin and replace test (or add new command such as egg-bin jest) with your own implementation to use others like jest.
see https://github.com/eggjs/egg-bin#custom-egg-bin-for-your-team
egg-bin won't support jest, but you can write test using jest with egg-mock.
cool. I can try to integrate jest when I have time.
egg-bin test --watch and npm run test-local -- --watch works. 👍
npx egg-bin test --watch
won't restart in typescript version although it runs at the first time
It don't work in following command line
"test-local": "egg-bin test --watch -r egg-ts-helper/register",
maybe mocha don't watch **/*.ts by default, see mocha docs for --watch
Most helpful comment
egg-bin testsupport all argv of mocha.try
egg-bin test --watchornpm run test-local -- --watch