npx create-expo-app@latest). For each platform
you want to test:
The first four steps are the same for every platform; the last one runs the tests on the platform you
choose.
1
Set up the project
init asks which test runner to use: press Enter for Vitest (recommended), or choose Jest or Cucumber
(test runners). --runner vitest|jest|cucumber chooses without the question. The steps
below use Vitest; with the others only the file names differ.init sets up iOS, Android and, when the app has react-native-web, the web; --platforms web,ios
limits it. It adds an e2e:* script for each platform to package.json.2
Wrap the root layout
Wrap the root layout in
<QuiescoRoot> (src/app/_layout.tsx in the default template):3
Give the home screen a test id
<ThemedView style={styles.container} testID="home"> in src/app/index.tsx. The generated
e2e/app.test.ts checks that it is visible:4
Let the home screen settle (optional)
You only need this step if the home screen has an animation that keeps running. Quiesco waits for the
screen to settle before it moves on, so an animation that runs for minutes makes it wait until
Then uncomment this line in
SYNC_TIMEOUT. If your home screen has none, skip this step.The SDK 55 default template is one such case: it spins a decorative glow on the home screen for four
minutes. Later templates may not have it — check your own project. The fix is to give the element a
test id and have Quiesco ignore it when deciding whether the screen has settled.In src/components/animated-icon.web.tsx (and animated-icon.tsx for iOS / Android):quiesco.config.mts:5
Run it
Pick the platform. The test file is the same for all three.The template renders on the server (
- Web
- iOS
- Android
web.output: "server"); Quiesco runs npx expo serve for that
export by itself. Static and single-page exports are served directly.npx quiesco doctor checks the setup and says how to fix what is missing.
npx quiesco tree prints the element tree of the running app to find test ids.
Next: write real tests in the tutorial, then see test runners and the
API reference.