This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 615f13419cb fix(jest): ignore storybook-static and package __mocks__ 
directories (#37946)
615f13419cb is described below

commit 615f13419cb576c9b877d8c72d595e7ed32b9a30
Author: Evan Rusackas <[email protected]>
AuthorDate: Mon Feb 23 19:18:14 2026 -0500

    fix(jest): ignore storybook-static and package __mocks__ directories 
(#37946)
    
    Co-authored-by: Claude Opus 4.5 <[email protected]>
---
 superset-frontend/jest.config.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/superset-frontend/jest.config.js b/superset-frontend/jest.config.js
index 19106b124be..4da37f9a245 100644
--- a/superset-frontend/jest.config.js
+++ b/superset-frontend/jest.config.js
@@ -42,6 +42,11 @@ module.exports = {
     '<rootDir>/packages/.*/lib',
     '<rootDir>/plugins/.*/esm',
     '<rootDir>/plugins/.*/lib',
+    // Ignore build artifacts that contain duplicate package.json or mock files
+    '<rootDir>/storybook-static',
+    // Ignore duplicate __mocks__ at package root level (e.g., 
packages/superset-ui-core/__mocks__)
+    // but not test __mocks__ directories (e.g., 
packages/superset-ui-core/test/__mocks/)
+    '<rootDir>/packages/[^/]+/__mocks__',
   ],
   setupFilesAfterEnv: ['<rootDir>/spec/helpers/setup.ts'],
   snapshotSerializers: ['@emotion/jest/serializer'],

Reply via email to