Blocks E2E: Restore the no-hooks rule (#47500)
This commit is contained in:
parent
3ef7a01840
commit
e765a717d2
|
@ -35,6 +35,10 @@ const config = {
|
|||
'@typescript-eslint/no-floating-promises': 'error',
|
||||
'@typescript-eslint/no-misused-promises': 'error',
|
||||
'rulesdir/no-raw-playwright-test-import': 'error',
|
||||
// Since we're restoring the database for each test, hooks other than
|
||||
// `beforeEach` don't make sense.
|
||||
// See https://github.com/woocommerce/woocommerce/pull/46432.
|
||||
'playwright/no-hooks': [ 'error', { allow: [ 'beforeEach' ] } ],
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
Restore the playwright/no-hooks linter rule introduced in #46432 and accidentally removed in #47228.
|
Loading…
Reference in New Issue