Jest: I can not use jest --init command

Created on 13 Sep 2018  ·  1Comment  ·  Source: facebook/jest

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 :)

>All comments

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)

Was this page helpful?
0 / 5 - 0 ratings