Kaiber
Generate, edit, and beat-sync AI video with leading models in one workspace.
limrun-detox-testing
Configure, run, or debug Detox on Limrun iOS simulators. Use when attaching the Limrun Detox runtime to an app, wiring Detox mediator connectivity, or validating app/tester connections over reverse tunnels.
Full skill instructions
Use this for Detox runtime work on Limrun iOS. Keep build concerns separate unless the user explicitly asks for a native build.
detox run-server, usually local to the agent machine.lim ios launch-app --runtime detox.Check current help before running commands you have not used in this session:
lim ios tunnel --help
lim ios launch-app --help
Run the long-lived mediator, tester, and tunnel from separate terminals.
Before using this quick path, ensure the project's .detoxrc reads the session
environment. Detox does not consume these variables automatically:
session: {
server: process.env.DETOX_SERVER || 'ws://localhost:8099',
sessionId: process.env.DETOX_SESSION_ID || 'limrun-detox',
}
The complete configuration appears under Detox Test Setup below.
Terminal 1:
npx detox run-server -p 8099 -l verbose
Terminal 2:
lim ios tunnel \
--selector localhost:8099 \
--detach \
--id <ios-id>
DETOX_SERVER_URL="ws://localhost:8099"
Terminal 3 starts the tester before the app connects:
DETOX_SERVER="ws://localhost:8099" \
DETOX_SESSION_ID=<session-id> \
npx detox test --no-start
Then relaunch the app from Terminal 2. --detox-version is optional when
running from the project with node_modules/detox.
lim ios launch-app <bundle-id> \
--id <ios-id> \
--runtime detox \
--detox-server-url "$DETOX_SERVER_URL" \
--detox-session-id <session-id> \
--detox-version <detox-version>
Prefer starting the tester before the app connects, or use the maintained orchestration in limrun-inc/typescript-sdk examples/detox-ios, to avoid benign mediator "cannot forward" noise.
If you manually launch the app before npx detox test --no-start, that mediator message is expected until the tester connects.
If tunnel start reports an active session, inspect it with lim ios tunnel status --id <ios-id> --json. Stop an obsolete session with lim ios tunnel stop --id <ios-id>, then start the declared mediator selector again.
An open idle tunnel does not count as instance activity, so it does not prevent
the simulator's inactivity timeout between test runs.
npx detox test --no-start still needs the normal Detox project configuration:
examples/detox-ios/.detoxrc.cjs in limrun-inc/typescript-sdk for a reference layout).type: '@limrun/detox/driver'.DETOX_SERVER and DETOX_SESSION_ID aligned with the mediator and launch command.LIMRUN_IOS_ID, LIMRUN_IOS_API_URL, and LIMRUN_IOS_TOKEN when screenshots or driver calls need the instance API.Use limrun-inc/typescript-sdk examples/detox-ios as the maintained happy path for exact config/env wiring. Use -l trace on detox run-server only when verbose logs are not enough.
For native SwiftUI apps, a minimal Detox configuration usually looks like:
const server = process.env.DETOX_SERVER || 'ws://localhost:8099';
const sessionId = process.env.DETOX_SESSION_ID || 'limrun-detox';
module.exports = {
testRunner: { args: { $0: 'jest' }, jest: { setupTimeout: 120000 } },
session: {
server,
sessionId,
debugSynchronization: 0,
},
apps: { ios: { type: 'ios.app', binaryPath: 'unused-by-limrun' } },
devices: {
limrun: {
type: '@limrun/detox/driver',
device: { id: process.env.LIMRUN_IOS_ID },
},
},
configurations: {
'ios.limrun': {
device: 'limrun',
app: 'ios',
behavior: { init: { reinstallApp: false }, cleanup: { shutdownDevice: false } },
},
},
};
Then launch with lim ios launch-app <bundle-id> --runtime detox ... and run npx detox test --no-start.
detox run-server logs role:"app" and appConnected:true.testerConnected:true, appConnected:true.--runtime detox launch.lim ios element-tree --id <ios-id> shows the expected app screen.--runtime detox.--detox-version should match the local detox package version used by the tester. If omitted, lim ios launch-app resolves it from the current working directory; pass it explicitly when running outside the Detox project.Cannot forward the message to the Detox client can simply mean the app connected before the tester did..accessibilityIdentifier("greetingText") with by.id('greetingText'); by.text(...) can miss labels that appear in lim ios element-tree.lim ios element-tree --id <ios-id> first, then mediator logs for app/tester connection state.detox run-server, running lim ios tunnel stop --id <ios-id>, and deleting the instance with lim ios delete <ios-id> (--id is not valid for delete).Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience