-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
Description
Jest has support for image snapshots: https://www.npmjs.com/package/jest-image-snapshot
Detox has support for taking screenshots: https://github.com/wix/Detox/blob/master/docs/APIRef.DeviceObjectAPI.md#devicetakescreenshotname
BUT detox will only save artifacts (including screenshots) after test completion, which is not compatible with how jest-image-snapshot expects to test them
Another issue is that the tests run on both android and iOS and will have different screenshots, and that must be compensated for somehow