mirror of
https://github.com/langgenius/dify.git
synced 2026-09-17 17:43:16 +08:00
test(web): remove Base UI component mocks (#39877)
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ Keep the production code that owns or transforms the asserted behavior real. Moc
|
||||
- External SDKs and expensive providers.
|
||||
- Independently tested child boundaries that do not own or transform the asserted behavior and whose setup would otherwise dominate the owner test.
|
||||
|
||||
Mocks must preserve the public contract needed by the test. Do not replace Dify UI or legacy base primitives with semantically inaccurate stubs just to make a test easier.
|
||||
Mocks must preserve the public contract needed by the test. Do not mock interactive Dify UI primitives or feature-owned wrappers around them. Keep their semantic roles, state attributes, portals, focus behavior, and `render(props, state)` contract real; mock only service or external-data boundaries needed to reach the scenario.
|
||||
|
||||
- Never make real network requests.
|
||||
- Reset shared mock state before each test that mutates it.
|
||||
|
||||
Reference in New Issue
Block a user