feat: device.resetAppState([...bundleIds])#4819
Merged
Conversation
Closed
2 tasks
63bb1d4 to
07a6b7a
Compare
d4vidi
requested changes
Sep 10, 2025
Contributor
There was a problem hiding this comment.
Summary:
- I don't think the global
optimizeReinstallflag is a good approach. More on that - inside. - Generated unit test code quality is poor. Preferably that can be fixed using good-enough cursor rules, but otherwise please let's try to avoid allowing AI with leaving us like that.
- Sporadic suggestions
detox/src/devices/runtime/drivers/ios/AppStateResetShim.test.js
Outdated
Show resolved
Hide resolved
detox/src/devices/runtime/drivers/ios/AppStateResetShim.test.js
Outdated
Show resolved
Hide resolved
detox/src/devices/runtime/drivers/ios/AppStateResetShim.test.js
Outdated
Show resolved
Hide resolved
detox/src/devices/runtime/drivers/ios/AppStateResetShim.test.js
Outdated
Show resolved
Hide resolved
detox/src/devices/runtime/drivers/ios/AppStateResetShim.test.js
Outdated
Show resolved
Hide resolved
07a6b7a to
6265a68
Compare
|
@noomorph Hey man, First of all, great work. While checking, I noticed something: with this usage, it resets the behavior as expected, but I see that the permissions cannot be re-granted. Similarly, when using { delete: true }, I see that the app starts with the permissions granted. I also saw this note in the documentation: However, I wanted to point out that it doesn’t seem to work in the same way. Wouldn’t it be better if the behavior were made similar to the delete option? Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In this pull request, I have implemented a new
device.resetAppState([...bundleIds])method that provides a more efficient way to reset app state compared to the traditional uninstall/reinstall cycle. This feature addresses performance concerns when running tests that require clean app state between test runs.pm clearcommand to clear app data without uninstalling the appUsage Examples: