eslint-plugin-playwright 2.10.2 → 2.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs +1 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1124,7 +1124,7 @@ var missing_playwright_await_default = createRule({
1124
1124
  if (parent.type === "MemberExpression" && parent.object === node) {
1125
1125
  return checkValidity(parent, visited);
1126
1126
  }
1127
- if (parent.type === "CallExpression" && parent.callee === node) {
1127
+ if (parent.type === "CallExpression" && (parent.callee === node || isIdentifier(parent.callee, "expect"))) {
1128
1128
  return checkValidity(parent, visited);
1129
1129
  }
1130
1130
  if (parent.type === "VariableDeclarator") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-playwright",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "description": "ESLint plugin for Playwright testing.",
5
5
  "license": "MIT",
6
6
  "author": "Mark Skelton <mark@mskelton.dev>",