Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/block-library/src/navigation/test/view.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* @jest-environment jsdom
*/

let mockRegisteredStore;
let mockCurrentContext;

Expand Down
14 changes: 14 additions & 0 deletions tools/eslint/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,20 @@ export default dedupePlugins( [
'test/performance/**/*.[tj]s?(x)',
'test/storybook-playwright/**/*.[tj]s?(x)',
],
rules: {
...jestPlugin.configs[ 'flat/recommended' ].rules,
/*
* `jsdom` is already the default test environment in `@wordpress/jest-preset-default`,
so the docblock pragma is redundant.
Comment thread
manzoorwanijk marked this conversation as resolved.
Resolved
*/
'no-warning-comments': [
Comment thread
manzoorwanijk marked this conversation as resolved.
Resolved
'error',
{
terms: [ '@jest-environment jsdom' ],
location: 'anywhere',
},
],
},
},

// Override: E2E test files (non-Playwright).
Expand Down
Loading