Overview of Detox Internals API
The Detox Internals API allows developers to align the lifecycles of Detox with a test runner. It is primarily designed for creating advanced enterprise presets or integrating Detox with alternative test runners such as Mocha, Ava, or Vitest. Because Detox includes features like a retry mechanism for failed test files, the Detox context must persist longer than the test runner itself, requiring a communication bridge between the primary Detox process and secondary worker processes.