webdriverio/webdriverio

[馃悰 Bug]: Typescript support for Custom matchers seems broken with V9

Open

#13387 opened on Aug 18, 2024

View on GitHub
聽(2 comments)聽(0 reactions)聽(0 assignees)JavaScript聽(6,029 stars)聽(1,793 forks)batch import
Bug 馃悰help wanted

Description

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

V9

Node.js Version

20

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

When creating a new customer matcher and you want to use ExpectWebdriverIO.PartialMatcher you get a TS error Namespace 'global.ExpectWebdriverIO' has no exported member 'PartialMatcher'. This prevents the Visual Testing Service to upgrade to V9 without using a workaround. See also https://github.com/webdriverio/visual-testing/actions/runs/10442443274/job/28914748091?pr=417

What is your expected behavior?

No response

How to reproduce the bug.

Clone the Visual project and use this PR

Relevant log output

Namespace 'global.ExpectWebdriverIO' has no exported member 'PartialMatcher'

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

Contributor guide