codeant-ai-for-open-source[bot] commented on PR #38643:
URL: https://github.com/apache/superset/pull/38643#issuecomment-4059665340
## **Sequence Diagram**
This PR replaces the external console mocking helper with Jest native spies
across superset-ui-core tests. The core flow now relies on globally created
console spies and per-test mock clearing to keep assertions isolated.
```mermaid
sequenceDiagram
participant TestRunner
participant Jest
participant CodeUnderTest
participant Console
TestRunner->>Jest: Create spies for console warn and error
TestRunner->>Jest: Clear spy call history before each test
TestRunner->>CodeUnderTest: Run chart and registry test cases
CodeUnderTest->>Console: Trigger warn or error when needed
TestRunner->>Jest: Assert expected console calls from spies
```
---
*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]