codeant-ai-for-open-source[bot] commented on PR #37946:
URL: https://github.com/apache/superset/pull/37946#issuecomment-3941810337
## **Sequence Diagram**
Shows how updating jest.config.js avoids haste module name collisions and
duplicate manual mock warnings by instructing Jest to ignore storybook-static
and root package __mocks__ directories before test resolution.
```mermaid
sequenceDiagram
participant Dev as Developer (local)
participant Jest as Jest Runner
participant Config as jest.config.js
participant Haste as Jest Haste Resolver
participant FS as File System
Dev->>Jest: run tests (npx jest ...)
Jest->>Config: load configuration (modulePathIgnorePatterns)
Config-->>Jest: include ignore patterns (storybook-static,
packages/[^/]+/__mocks__)
Jest->>Haste: scan project files
Haste->>FS: skip files matching ignore patterns
Haste-->>Jest: no duplicate package.json or mock collisions
Jest->>FS: run discovered tests
FS-->>Jest: test results
Jest-->>Dev: report passing tests (no haste/mocks warnings)
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]