Skip to main content
In an Expo app (SDK 55 or later) quiesco init does the setup and quiesco build makes the e2e build; the quick start goes through both, from a new app to a passing test. This page says what is set up, so that you can check a project or do a step by hand. For an app without Expo, see Set up a bare React Native app.
init asks which test runner to use (Vitest, Jest or Cucumber), never overwrites a file and lists what it left to you (CLI).

What is set up

1

Packages

expo-dev-client makes the e2e build a development build, which loads its JS from Metro. @quiesco/vitest is the Vitest integration; Jest and Cucumber work the same way.
2

The config plugin and the app IDs

app.json
@quiesco/expo-plugin lets an e2e build connect to the test run on localhost; it changes nothing in other builds. scheme, ios.bundleIdentifier and android.package are named so that the build and quiesco.config.mts mean the same app. With an app.config.js or app.config.ts, add them yourself.
3

Metro

metro.config.js
withQuiesco() puts the agent into bundles made with EXPO_PUBLIC_QUIESCO=1 and a no-op stub into every other bundle.
4

The entry file

index.ts
The agent must be the first import of the app. An Expo Router app gets this entry file, and "main": "index.ts" in package.json.
5

The root component

src/app/_layout.tsx
init leaves this one to you in an Expo Router app: wrap the root layout (src/app/_layout.tsx) in <QuiescoRoot>.
6

The config

quiesco.config.mts
devClient says that the app is a development build: quiesco test starts Metro when it is not running. Every option is in configuration; the runner’s own config and a first test are in test runners.

Build and run

quiesco build runs expo prebuild with EXPO_PUBLIC_QUIESCO=1 and then the native build (CLI); autolinking takes @quiesco/native only with that variable. To build on EAS instead, see EAS Build.

Builds that are not e2e builds

Without EXPO_PUBLIC_QUIESCO=1 Metro bundles a stub in place of the agent, autolinking leaves @quiesco/native out and the config plugin writes nothing, so a release contains nothing of Quiesco and needs no setting for that. The native directories are made for one kind of build: after an e2e build, run npx expo prebuild --clean without the variable before you build a release from the same checkout.