peach detox
Drop-in Detox runner. Existing import from 'detox' suites run unchanged via a Jest moduleNameMapper rewrite: no code edits, no config churn. Needs a running peach shell (peach open <app-port> first) and warns when none is reachable.
terminal
Options
| flag | description |
|---|---|
--app <port|url> | the app each launchApp() opens: its dev server port or bundle url |
--config <path> | use a specific jest config instead of the default |
--watch | jest watch mode |
--headed | keep the peach shell window visible |
-t <pattern> | pass a Jest —testNamePattern |
--no-launch | skip the running-shell check (manage the shell yourself) |
Examples
terminal
Drop-in Detox
peach detox runs your existing Detox test suite against peach with no code changes. With a peach shell running (peach open <app-port>), it sets up the Jest module mapping (^detox$ → peachsim/detox), and runs your tests. Jest runs from your project, so add its dev dependencies once:
terminal
terminal
Users can also add preset: 'peachsim/detox' to their own Jest config to run tests via plain npx jest.