NOTICE: This feature will be removed from the core cli and become an addon in a future update.
It is important to note that currently this feature expects a jest.json file to be present at the root of the package to configure the compiler.
For reference on all the available configurations please review the official documentation for Jest.
First be sure to create a jest.json file at the root of the project or in other words adjacent to the package.json.
For reference on all the available options please review the official documentation for Jest.
Once this has been confirmed all we have to do is run the following.
or perhaps as part of a CI workflow:
Jest has an extensive CLI and so it is recommended to review their documentation for all the available options. Proper configuration through jest.json is also highly recommended.