Skip to content

[🐛 Bug]: TypeError: globals.get(...)[matcher] is not a function #11817

@erwinheitzman

Description

@erwinheitzman

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

18

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

I get an error: TypeError: globals.get(...)[matcher] is not a function

What is your expected behavior?

No response

How to reproduce the bug.

Initiate a new project (Jasmine and Typescript was chosen in my case) with the latest versions and I use the new matchers like so:

        await expect(SecurePage.flashAlert).toHaveText(expect.stringContaining(
            'You logged into a secure area!'))

Relevant log output

TypeError: globals.get(...)[matcher] is not a function

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions