Closed andrii-nastenko closed 1 month ago
Investigation:
this.equals()
here: https://github.com/microsoft/playwright/blob/00131c1e3fb9c524b2b2b4496ebebcabf46b326e/packages/playwright/src/matchers/expect.ts#L135-L141Capturing offline discussion: introduce equals()
method that will throw a nice message pointing to the docs.
Version
1.45.0
Steps to reproduce
preconditions:
Install packages:
1) "@playwright/test": "1.45.0" 2) "jest-extended": "4.0.2"
Create and apply following files into your project:
matchers.ts
matchers-types.d.ts
use jest matcher in some test, e.g.
expect(someArray).toIncludeAllMembers([1,2,3,4,5]);
Expected behavior
Matcher should work and pass check
Actual behavior
TypeError: equals is not a function
Additional context
Important thing:
Matchers from 'jest-extended' package has always worked with previous PW versions (e.g. it worked with previous 1.44.1). The problem appeared stating with 1.45.0 version.
Environment