Skip to content
v0.29.6

TDD mode

Selected CLI guides for v0.29.6, published . Cloud features may behave differently today.

Use tdd run to run tests that capture screenshots through your Vizzly integration.

Terminal window
npx vizzly tdd run "npm test" --set-baseline
npx vizzly tdd run "npm test" --no-open

The first command records screenshots as baselines. The second compares against those baselines and leaves the report closed. Add --fail-on-diff if a visual difference should fail the run.

Keep the TDD server open

Start the server and open its dashboard when you want to run tests repeatedly. Run your tests in another terminal, then stop the server when you’re done.

Terminal window
npx vizzly tdd start --open
npx vizzly tdd status
npx vizzly tdd stop