Skip to content

Commit

Permalink
docs(migration): fixed wording
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Dec 3, 2021
1 parent 7a6da6a commit d95b5e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Guide.Migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ We are improving Detox API as we go along, sometimes these changes require us to
### 19.2

The release has a **developer experience** improvement – _Detect pending in-flight requests_ (#3003, @jonathanmos).
The feature adds an extra logic that prevents forgotten `await` statements on asynchronous Detox APIs, so you might see a new error like this:
The feature adds extra logic that prevents forgotten `await` statements on asynchronous Detox APIs. That’s why you might see a new error like this:

```plain text
FAILED
Expand All @@ -21,8 +21,8 @@ DetoxRuntimeError: The pending request \#246 ("invoke") has been rejected due to
Detox has detected multiple interactions taking place simultaneously. Have you forgotten to apply an await over one of the Detox actions in your test code?
```

That should help you to find forgotten `await`s in your code which can be potentially be the reason for flakiness in your tests.
You’ll need to find those places and apply a trivial fix like this:
That should help you find forgotten `await`s in your code that are a potential reason for flakiness in E2E tests.
You’ll need to find those places and apply trivial fixes like shown below:

```diff
await screenDriver.performSomeAction();
Expand Down

0 comments on commit d95b5e7

Please sign in to comment.