github wix/Detox 20.42.0

14 hours ago

What's Changed

  • feat: device.resetAppState([...bundleIds]) (#4819)

Tip

Introducing a new efficient way to reset app state without full uninstall/reinstall cycles. On Android, uses pm clear for fast data clearing, while iOS implements a smart backup/restore mechanism that preserves app binaries. Perfect for test isolation and faster CI pipelines. Supports resetting multiple apps at once: await device.resetAppState('com.app1', 'com.app2') or just the current app with await device.resetAppState(). Also integrates with device.launchApp({resetAppState: true}) for seamless test setup.

  • fix(ios): device creation with new applesimutils (#4836)

Fixes issue with automatic iOS device creation with newer versions of applesimutils (>0.9.10)

  • fix: sanitize dollar sign in artifact names (fix for #4798)

Android tests with $ in the test name previously had an issue with saving artifacts.

  • fix: broken Jest output on early setup errors (#4804)

Early environment setup errors induced garbled logs like m\nm\nm\n[\n[\nm\n, thanks @MadSandwich for the repro

Full Changelog: 20.41.3...20.42.0

Don't miss a new Detox release

NewReleases is sending notifications on new releases.