Detox Driver
Drop-in replacement for import { by, element, expect, waitFor, device } from 'detox'.
Your existing Detox specs run against rnx’s canvas with no native build.
Running your suite
You don’t wire this up by hand. rnx detox runs your own Jest, forcing a
preset that remaps ^detox$ to the rnx driver, so import ... from 'detox'
resolves to rnx without touching your test files:
It launches a simulator for the run (pass --no-launch to attach to one you
already have) and picks up config from --config <path>, else
rnx-detox.config.cjs / jest.config.cjs / jest.config.js, else a
generated temp config. Your Jest version, transforms, and setup files are
preserved.
Matchers
Element actions
Assertions
toBeFocused, toHaveSliderPosition, and toHaveToggleValue exist for API
compatibility but currently only assert existence.
waitFor
The waitFor chain intentionally exposes a narrower set of conditions than
expect.
Device
No-ops kept for source compatibility (there is no native process in the
browser): installApp, uninstallApp, shake, setLocation,
setURLBlacklist, sendToHome.