quiesco.config.ts in the directory you run it from. quiesco.config.mts,
.js and .mjs work too; quiesco init writes quiesco.config.mts. To use another file, set
QUIESCO_CONFIG to its path.
apps is required, and only for the platforms you test. Everything else has a default.
- The file must default-export the config.
defineConfigonly adds types. - It is plain TypeScript, so values can come from the environment, e.g.
device: process.env.QUIESCO_IOS_DEVICE ?? 'iPhone 17'. Node runs it directly, so use only syntax that can be erased (noenum, nonamespace). - The platform is not part of the config: it comes from
quiesco test --platformorQUIESCO_PLATFORM.
A config per worker
For parallel runs, the config can be a function. It is called once per worker:workerIndex is 0-based; when running serially it is 0 and workerCount is 1.
Top level
The Expo app’s directory, relative to the config file. Set it when the tests live in a package of their
own (a monorepo, or
app/ and e2e/ side by side). quiesco doctor, build and init --upgrade work on
the app there, and quiesco test starts Metro there (tests in a package of their own).Permissions granted before the app launches, so no system dialog interrupts a scenario:
camera,
microphone, location, notifications, contacts, photos, calendar. A permission a platform cannot
pre-grant is skipped with a warning (per platform).Launch arguments every launch passes to the app, any JSON. The app reads them with
quiesco.launchArgs(). app.device.relaunch({ args }) merges its own over these (shallow).How long to wait for the app to connect after launch. The session’s first launch gets 90 s by default,
because it comes right after installing (Android verifies the new APK then). When set, the value is used
for every launch.
After this many scenarios in a row fail the same way (same error at the same step), print a hint with the
current route and skip the rest: the app is most likely stuck in a state every scenario inherits.
false
runs every scenario (the hint is still printed after 3).The lowest level of the app’s console messages forwarded to the test output.
'off' forwards none.apps
Which app to launch on each platform. Configure only the platforms you test.apps.ios
The simulator build (
.app) to install, relative to the config file. Omit it when the app (e.g. a dev
client) is already installed.Launch through an Expo dev client that loads its JS from Metro at
metroUrl (passed as --initialUrl).apps.android
The APK to install, relative to the config file. Omit it when the app (e.g. a dev client) is already
installed.
Launch through an Expo dev client:
scheme is the app’s URL scheme, metroUrl the Metro it loads its JS
from.Host ports the app calls on
localhost (e.g. a local mock backend), forwarded with adb reverse.apps.web
SetdistDir or url.
The output of
npx expo export --platform web. A static export is served by Quiesco (with SPA fallback);
a web.output: "server" export is hosted with npx expo serve.devices
Which simulator, emulator or browser to run on. Nothing is built in: device names, OS versions and viewports always come from here.devices.ios
Parallel runs: worker N uses
udids[N]. Without it, worker 0 uses the simulator above and every other
worker one named “<name> (Quiesco N)”, created on first use and kept
(which device each worker uses).Shut down a simulator Quiesco booted when the run ends. Leaving it running makes the next run faster.
Turn off password AutoFill, so iOS never covers the app with its “Save Password?” sheet after a login form
is submitted.
devices.android
Parallel runs: worker N uses
serials[N]. Without it, worker 0 uses the device above and every other
worker an AVD of its own, <avd>_quiesco_N, created from avd on first use and kept
(which device each worker uses).The
-gpu mode of the emulators Quiesco boots (host, lavapipe, swiftshader_indirect, …). On macOS,
auto (or no mode) becomes host: there the emulator would turn auto into lavapipe, a CPU renderer
that keeps about 4 cores busy per emulator. Emulators that are already running keep their mode; Quiesco
warns when it is a CPU renderer.Shut down an emulator Quiesco booted when the run ends. Leaving it running makes the next run faster.
devices.web
The browser. Browser tags (
@chromium, @firefox, @webkit) pick scenarios by it
(differences).sync
How Quiesco decides that the app is idle before each call (synchronization).How long a call waits for the app to become idle before failing with
SYNC_TIMEOUT.Requests that never keep the app busy, e.g. analytics or long polling. Strings match as substrings.
Elements (with their subtrees) left out of the frame-stable check, e.g.
['logo-glow'] for a decorative
animation that runs for minutes. Other trackers (network, timers, React) are not affected.Turn off individual trackers, e.g.
{ 'frame-stable': false }. Trackers: network, timer, react,
idle-callback, frame-stable, native, native-module. native-module is on only when the build
wraps native modules (trackers).native-module tracker: how long a pending native module call keeps the app busy.native-module tracker: calls that never keep the app busy, as "Module.method". Strings match as
substrings. These are added to the calls that wait for the user, which are ignored by default
(native module calls).native-module tracker: false makes the calls that wait for the user (permission requests, pickers,
authentication and share sheets) keep the app busy too.actions
native sends real input events; js calls the elements’ handlers. native needs @quiesco/native in
the app.How far the fingers move before the app’s pinch / rotation recognizers activate (logical units, radians).
pinch and rotate move this much first. The defaults fit the standard recognizers (UIKit,
react-native-gesture-handler); set it for other recognizers, or 0 for no compensation
(multi-finger gestures).reset
How the app is brought back to its initial state before each scenario.hard relaunches the app before every scenario. A single scenario can ask for it with @hard-reset.An element that must be visible after every reset, e.g.
{ id: 'home' }. If it is not, the reset fails
with RESET_FAILED instead of the scenario’s first step failing in a confusing way. Expo Router apps
already have the route checked; this works for any app.devServer
The Metro dev server the app loads its JS from. When the app needs Metro (devClient.metroUrl, or
apps.web.url) and nothing answers there, quiesco test starts one with EXPO_PUBLIC_QUIESCO=1, waits
until it is ready, and stops it afterwards. A Metro you started yourself is reused.
Start Metro when it is not running. Only for a URL on this machine (
localhost, 127.0.0.1, [::1]).The command that starts it.
{port} is replaced with the port from the URL.artifacts
Files recorded for each scenario, underartifacts/<date-time>-<platform>/<nnn>-<scenario>/
(what is in them). Each of video, logs and timeline takes a policy: 'none',
'failing' (recorded for every scenario, kept when it fails) or 'all'. QUIESCO_ARTIFACTS=none|failing|all
sets all three for one run.
Where runs are written, relative to the working directory. For parallel runs with another directory, pass
it to the config plugin too:
withQuiesco(config, { artifactsDir }).A screen recording. It costs a little on every scenario; turn it on in CI.
Every call on the app with its duration and how long it waited for idle.
appErrors
Uncaught errors in the app fail the current step. These options decide which ones do not.App errors that only log a warning instead of failing the step, matched against the message. Strings
match as substrings. They are also left out of the
console.errors a failure lists.Also ignore known framework reports that are not real failures, such as Expo Router’s lazy routes on the
web reporting
Requiring unknown module "…".React Native’s LogBox in dev builds. Its toast covers the bottom of the screen, so taps there would fail.
'clear' clears its logs on every soft reset, 'ignore' shows no LogBox notifications at all (the errors
still reach the failure message), 'keep' leaves it alone
(LogBox covers the app).server
The WebSocket server on the host that the app connects to.tags
Rename the scenario tags Quiesco reacts to, e.g.
{ web: '@browser', webkit: '@safari' }. With Vitest, pass the same to quiesco({ tags }) in
vitest.config.ts.