Open MercatoDocsSearch docsAPI reference

CLI

yarn test:integration:ephemeral:start

Start an isolated app and database when a person or an MCP client needs an environment for exploratory testing. Keep its connection details separate from your regular workspace.

yarn test:integration:ephemeral:start executes yarn mercato test:ephemeral.

This command boots an isolated environment and keeps it running until you stop it with Ctrl+C.

For short integration-development loops, prefer yarn test:integration:ephemeral:interactive so you can run many tests without repeated bootstrap.

Usage

# Preferred script
yarn test:integration:ephemeral:start

# Direct CLI command (alias form)
yarn mercato test:ephemeral

# Direct CLI command (module/command form)
yarn mercato test ephemeral

Options

OptionDescription
--verboseShows detailed bootstrap/build logs.
--screenshotsEnables screenshot capture for Playwright sessions.
--no-screenshotsDisables screenshot capture for Playwright sessions.
--no-reuse-envForces a brand-new ephemeral environment instead of attaching to an existing one.

Examples

# Start ephemeral environment for manual QA
yarn test:integration:ephemeral:start

# Start with verbose setup logs
yarn mercato test:ephemeral --verbose

# Always start a fresh instance on an isolated port
yarn mercato test:ephemeral --no-reuse-env

Runtime Output

When ready, the command prints:

The command also writes environment state to .ai/qa/ephemeral-env.json:

Requirements

Previous: Scheduler CLI · Next: yarn test:integration:ephemeral