percy-interactor
A Percy SDK for taking snapshots through @bigtest/interactor
.
Usage
To use percy-interactor
:
yarn add -D percy-interactor
ornpm i -D percy-interactor
- Import
snapshottable
into one of your custom interactors - Set
PERCY_TOKEN
with your projects token:export PERCY_TOKEN=abc
- Wrap your test command with
percy exec
:percy exec -- yarn test
For example:
; @interactor snapshot = ;
await ;
You can also pass options (widths
& minHeight
) when using it in
tests:
await;