Detox Driver
Drop-in replacement for import { by, element, expect, waitFor, device } from 'detox'.
Your existing Detox specs run against SootSim’s canvas with no native iOS.
Running your suite
You don’t wire this up by hand. sootsim detox runs your own Jest, forcing a
preset that remaps ^detox$ to the SootSim driver, so import ... from 'detox'
resolves to SootSim without touching your test files:
terminal
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
sootsim-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.
