Skip to content

fix: Align Jasmine typing + support jasmine asymetrics matchers + other types fixes#2018

Open
dprevost-LMI wants to merge 33 commits intowebdriverio:mainfrom
dprevost-LMI:use-expect-async-matchers-with-jasmine
Open

fix: Align Jasmine typing + support jasmine asymetrics matchers + other types fixes#2018
dprevost-LMI wants to merge 33 commits intowebdriverio:mainfrom
dprevost-LMI:use-expect-async-matchers-with-jasmine

Conversation

@dprevost-LMI
Copy link
Contributor

@dprevost-LMI dprevost-LMI commented Feb 4, 2026

Fixes #1893
Fixes #1407 for real

Highlights:

  • jasmine-expect-global.test-d provides proper Jasmine typing to use expect asynchronously with wdio/jasmine-framework
    • withContext is support for sync & async matchers
    • sync matchers are also async, following the hack of adding all sync matchers on expect forced to be expectAsync
    • Later to move into wdio/jasmine-framework
  • jasmine.stringContaining now working with any text-based wdio matcher
  • Fix some matchers that should have been a promise when passing an element
  • Review the Jest playground to really test Jest's augmentation when used with Jest as global + wdio custom matchers registered
  • Review all type tests to use the vitest type testing mechanism
  • Update all deps dependencies to the latest minor

TODOs

  • Review snapshot and visual snapshot under the Jest playgrounds (for another day)
  • Check and/or document if supporting jasmine asymetrics matcher under expec-wdio import is needed

Waiting

@christian-bromann
Copy link
Member

@dprevost-LMI thanks for this effort, let me know the status of this and when I can review.

@dprevost-LMI dprevost-LMI force-pushed the use-expect-async-matchers-with-jasmine branch from 8ac2038 to 4648bd6 Compare March 8, 2026 15:59
@dprevost-LMI dprevost-LMI force-pushed the use-expect-async-matchers-with-jasmine branch from 34cb319 to b864314 Compare March 8, 2026 17:59
@dprevost-LMI dprevost-LMI force-pushed the use-expect-async-matchers-with-jasmine branch from b864314 to 5bb0b0c Compare March 14, 2026 12:28
@dprevost-LMI
Copy link
Contributor Author

@dprevost-LMI thanks for this effort, let me know the status of this and when I can review.

@christian-bromann I reviewed it thoroughly following the latest release and ensured it works with the latest wdio, so it's fully ready for you to review!

@dprevost-LMI dprevost-LMI marked this pull request as ready for review March 14, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jasmine Augmentations Limitations & Future Jasmine withContext broken

2 participants