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
TypeError: Cannot read properties of undefined (reading 'type')
Occurred while linting /Users/vicgli/Documents/Repositories/paf-backoffice/app/tests/utils/expects.ts:28
Rule: "playwright/prefer-web-first-assertions"
at dereference (/Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint-plugin-playwright/dist/index.js:2633:12)
at CallExpression (/Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint-plugin-playwright/dist/index.js:2654:21)
at ruleErrorHandler (/Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint/lib/linter/linter.js:1076:28)
at /Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/Users/vicgli/Documents/Repositories/paf-backoffice/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:803:23)
The text was updated successfully, but these errors were encountered:
Same here. I bumped versions incrementally and 1.4.0 is the culprit release that started showing this error.
Unsure if this is related, but since upgrading any files inside a test or __test__ directory anywhere in my project are being linted by this plugin rather than just playwright tests.
Unsure if this is related, but since upgrading any files inside a test or __test__ directory anywhere in my project are being linted by this plugin rather than just playwright tests.
@greggb Indeed unrelated, but in general when using this plugin you should scope it to only the directory containing your Playwright tests.
After updating from
1.3.1
to1.5.2
, the following code throws an exception when linting:The exception:
The text was updated successfully, but these errors were encountered: