Skip to content

Commit

Permalink
Revert "Overwrite sync expect fn with expectAsync (#545)"
Browse files Browse the repository at this point in the history
This reverts commit c9a63ad.
  • Loading branch information
christian-bromann committed Sep 22, 2021
1 parent 3c99aa5 commit 0d87d34
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/addMatchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,8 @@ export const addMatchers = (): any => {
expectLib = global.jasmine

return expectLib.getEnv().beforeAll(function addExpectWebdriverIOMatchers(): void {
expectLib.addMatchers({ ...matchers })
expectLib.addAsyncMatchers({ ...matchers })

/**
* we can't use WebdriverIO async matchers with Jasmines synchronous expect
* library as we get something like `Error: Expected [object Promise] to be existing.`
*/
global.expect = global.expectAsync as any
})
}

Expand Down

0 comments on commit 0d87d34

Please sign in to comment.