I'm using jest 22.4.4
when following official documentation, I came across this error
➜ fe-banciyuan-web git:(unit-test) ✗ jest --init
● Unrecognized CLI Parameter:
Unrecognized option "init".
CLI Options Documentation:
https://facebook.github.io/jest/docs/en/cli.html
and I checked all parameters using jest --help
there is no init in the list
==================================updates
when updating to 23.6.0, it works :)
That's expected, Jest 22 doesn't have the command (and it's not documented for 22: https://jestjs.io/docs/en/22.4/cli)