You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(value).toStrictEqual(): Value is similar, including property types
expect(value).toThrow(): Function throws an error
expect(value).any(): Matches any instance of a class/primitive
expect(value).anything(): Matches anything
expect(value).arrayContaining(): Array contains specific elements
expect(value).closeTo(): Number is approximately equal
expect(value).objectContaining(): Object contains specific properties
expect(value).stringContaining(): String contains a substring
expect(value).stringMatching(): String matches a regular expression
When a specific matcher is not implementable, because k6 or the k6 browser module doesn't have the necessary requirements, make sure to create a dedicated issue, and link it in the task list.
The text was updated successfully, but these errors were encountered:
As we move forward, we aim to get as close as possible to parity with Playwright retrying assertions and their behavior.
The following task list contains the non-retrying assertion matchers that are still to be implemented in the library:
expect(value).toContain()
: String contains a substringexpect(value).toContain()
: Array or set contains an elementexpect(value).toContainEqual()
: Array or set contains a similar elementexpect(value).toHaveProperty()
: Object has a propertyexpect(value).toMatch()
: String matches a regular expressionexpect(value).toMatchObject()
: Object contains specified propertiesexpect(value).toStrictEqual()
: Value is similar, including property typesexpect(value).toThrow()
: Function throws an errorexpect(value).any()
: Matches any instance of a class/primitiveexpect(value).anything()
: Matches anythingexpect(value).arrayContaining()
: Array contains specific elementsexpect(value).closeTo()
: Number is approximately equalexpect(value).objectContaining()
: Object contains specific propertiesexpect(value).stringContaining()
: String contains a substringexpect(value).stringMatching()
: String matches a regular expressionWhen a specific matcher is not implementable, because k6 or the k6 browser module doesn't have the necessary requirements, make sure to create a dedicated issue, and link it in the task list.
The text was updated successfully, but these errors were encountered: