Skip to content
v0.8.0

TDD mode

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

Pass your test command directly to vizzly tdd. Your test should capture screenshots through your Vizzly integration.

Terminal window
npx vizzly tdd "npm test" --set-baseline
npx vizzly tdd "npm test"

The first command records screenshots as baselines. Run the second command after making a change to compare the new screenshots locally. Use --set-baseline again when you want to replace the baselines.

Use a cloud baseline

If you have a project token and a build ID, you can start a local comparison using screenshots from that build.

Terminal window
npx vizzly tdd "npm test" --baseline-build build-id