diff --git a/packages/core/.eslintrc.js b/packages/core/.eslintrc.js index ea6d8324ff..de90d218e7 100644 --- a/packages/core/.eslintrc.js +++ b/packages/core/.eslintrc.js @@ -59,7 +59,7 @@ const commonExtends = ["plugin:react/recommended", "plugin:react-hooks/recommend module.exports = { overrides: [ { - files: ["jest.init.js"], + files: ["*.test.js", "jest.init.js"], env: { jest: true, "jest/globals": true diff --git a/packages/storybook-blocks/.eslintrc.js b/packages/storybook-blocks/.eslintrc.js index 76c5b9fe9a..5b23350a6e 100644 --- a/packages/storybook-blocks/.eslintrc.js +++ b/packages/storybook-blocks/.eslintrc.js @@ -39,7 +39,7 @@ const commonExtends = ['plugin:react/recommended', 'plugin:prettier/recommended' module.exports = { overrides: [ { - files: ['jest.init.js'], + files: ['*.test.js', 'jest.init.js'], env: { jest: true, 'jest/globals': true,