Skip to content

Conversation

jtgober
Copy link

@jtgober jtgober commented Sep 5, 2025

This allows for regex to be used with the expect-expect linting option. I've also tested this on a quick sample project. where rules:

rules: {
 'playwright/expect-expect': ['error', {
  assertFunctionNames: ['myCustomAssert'],
  assertFunctionPatterns: ['^verify.*', '^check.*', '.*Assertion$']
}]
 ...
}

works for example tests

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.

1 participant