Skip to main content
This tutorial starts from a working app and ends with eight tests that run unchanged on the web, iOS and Android. Along the way you use everything a typical test needs: finding elements by test id, moving between screens, filling in a form, setting up data through a backdoor, and reading a failure. The tests are written three times, once for each test runner. Set up the project on this page, then pick one: the steps are the same, only the test code differs. It takes about 30 minutes. You need Node.js 24+; for iOS and Android, the tools listed in the quick start.

The app

The app is an Expo Router app with three screens. The repository has it three times, once per test runner: todo-tutorial-vitest, todo-tutorial-jest and todo-tutorial-cucumber; only the tests differ.
The todo list with two todos, one checked off, and a New todo button

The list (/)

The new-todo form with a title and a notes field and a Save button

New todo (/new)

The details of a todo with Mark as done and Delete todo buttons

Details (/todo/[id])

  • The list shows every todo with a checkbox, and how many are done. New todo opens the form; tapping a todo opens its details.
  • New todo asks for a title and optional notes. Saving takes a moment (it stands in for a request to a backend), then the app goes back to the list.
  • Details shows one todo and has two buttons: mark it done (or open again) and delete it.
The todos live in memory (src/store.ts): every launch starts with an empty list.

Get the project

Copy the example for your runner out of the repository and install it:
Try the app with npm run web (or npm start for a dev client) if you like. The project is already set up for Quiesco — it is what npx quiesco init --runner <runner> plus the quick start steps produce:

Pick a runner

Vitest (recommended)

Tests in TypeScript, with the app as the app fixture.

Jest

Tests in JavaScript, with the app in the global quiesco.app.

Cucumber

Scenarios in Gherkin, step definitions in TypeScript.