New integration with jest-circus (#2009, by @noomorph)
The new Detox integration with jest-circus
is going to replace the former ones with jest-jasmine2
and jest-circus
(aka detoxCircus.getEnv()
) as soon as it completes beta testing. The corresponding deprecation notices will be introduced prior to the next major release.
If you are starting a new project, then detox init -r jest
command will already equip you with the second generation of detox + jest-circus
integration. In existing projects, you will have to create a new e2e/environment.js
file and clear clutter from e2e/init.js
file (or even delete it) — see the updated Jest guide.
The major highlight of the new integration is #1661 — you will have ***Failure.png
screenshots right after an assertion fails: beforeAllFailure.png
, beforeEachFailure.png
, testFnFailure.png
, etc, depending on where the tests fail. This feature is available only if you use the new DetoxCircusEnvironment
.
For internal details, why #2009 is important, see the description of the pull request.