Open
Description
My question is how to run jest programmatically. There are some examples on the internet:
https://stackoverflow.com/a/30562836/1652273
https://stackoverflow.com/a/33669530/1652273
#3848
All of them reference requiring jest
or jest-cli
and calling runCLI()
, but it does not seem to be documented anywhere (I haven't found anything in the jest docs nor is there any documentation for the jest-cli package).
Is this the official supported way? Thanks.