Skip to content

Commit 4d3b41c

Browse files
committed
More concise doc
1 parent 390accf commit 4d3b41c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ In addition to the WebdriverIO matchers, `expect-webdriverio` also provides basi
941941
For Jasmine, see the official documentation for [expect/expectAsync](https://jasmine.github.io/api/edge/global.html#expect), [matchers](https://jasmine.github.io/tutorials/your_first_suite#section-Matchers), and [async-matchers](https://jasmine.github.io/api/edge/async-matchers.html).
942942

943943
**Note:**
944-
- When using `@wdio/jasmine-framework` with the global import, all matchers are registered on `expectAsync`, which is then assigned to the global `expect`. This causes every matcher to return a promise and behave asynchronously.
944+
- With the global import in @wdio/jasmine-framework, only WebdriverIO custom matchers are registered on expectAsync (assigned to global expect), so all matchers are always async, even those that are normally synchronous.
945945
- Default matchers are still available if you import `expect` directly from `expect-webdriverio` instead of using the global.
946946

947947
## Modifiers

0 commit comments

Comments
 (0)