Skip to main content
Every call waits for the app to be idle (synchronization). When one screen keeps the app busy — it polls, animates forever, or holds a request open — app.sync changes what Quiesco waits for, for the rest of the test, instead of switching synchronization off altogether.
The changes last until the end of the test and are undone before the next one. They survive relaunches and reconnects. To skip waiting for a single call only, { sync: false } still works (call options).

Trackers

disableTracker(name)

Types: TrackerName Stops waiting for one tracker: one source of busyness.
name is one of network, timer, react, idle-callback, frame-stable, native and native-module (on when the build wraps native modules: native module calls). Another name throws a RangeError.

enableTracker(name)

Types: TrackerName Waits for a tracker again, also one the config turns off.

disable()

Stops waiting for the app altogether: every tracker is off until enable() (Detox disableSynchronization).

enable()

Waits for the app again: the trackers are as configured, with the changes made by disableTracker and enableTracker still in effect.

Ignore lists

ignoreUrls.add(pattern) / ignoreUrls.remove(pattern)

Adds a URL to, or removes it from, the requests the network tracker ignores, on top of the config’s sync.ignoreUrls (configuration). pattern is a string or a regular expression.
remove also takes out a pattern that comes from the config, for the rest of the test.

ignoreElements.add(target) / ignoreElements.remove(target)

Types: MatcherInput Adds an element to, or removes it from, the elements the frame-stable tracker leaves out, on top of the config’s sync.ignoreElements (configuration). target is a matcher.
remove also takes out a matcher that comes from the config, for the rest of the test.