rnx detox
rnx detox
Drop-in Detox runner. Existing import from 'detox' suites run unchanged via a Jest moduleNameMapper rewrite: no code edits, no config churn. Auto-launches an rnx shell if none is running.
terminal
Options
| flag | description |
|---|---|
--config <path> | use a specific jest config instead of the default |
--watch | jest watch mode |
--headed | keep the rnx shell window visible |
-t <pattern> | pass a Jest —testNamePattern |
--no-launch | skip auto-launching an rnx shell (manage it yourself) |
Examples
terminal
Drop-in Detox
rnx detox runs your existing Detox test suite against rnx with no code changes. It auto-launches an rnx shell, sets up the Jest module mapping (^detox$ → rnxsim/detox), and runs your tests.
terminal
Users can also add preset: 'rnxsim/detox' to their own Jest config to run tests via plain npx jest.