eslint-plugin-playwright
eslint-plugin-playwright copied to clipboard
require-hook: false warning for `test` alias
trafficstars
Example from the docs:
import { test as setup, expect } from '@playwright/test';
setup('authenticate', async ({ page }) => {
// ...
});
Expected: no warning
Actual: "This should be done within a hook" warning
eslint-plugin-playwright version: 1.3.1 Node.js version: 18.19.0
I've been making some major improvements to the internals of the plugin, and this should soon be possible.
@EvgenyOrekhov You can now set aliases for Playwright global functions.
https://github.com/playwright-community/eslint-plugin-playwright#aliased-playwright-globals