Files
dify/packages
GareArc 3f70842e22 fix(workspace): install @vitest/browser for dify-ui browser matcher types
Adding cli/ to the pnpm workspace shifted peer resolution and dropped
@vitest/browser from the install graph. @vitest/browser is an optional
peer of vitest-browser-react, and its ambient augmentation is what
defines expect.element / toBeInTheDocument / toHaveClass used in the
dify-ui browser-mode tests. Without it, tsgo fails Web Style on this
branch even though main is byte-identical for dify-ui sources.

Pin @vitest/browser in the workspace catalog at 4.1.7 (matching the
existing peer expectation) and declare it as a devDependency of
packages/dify-ui so resolution stays stable regardless of which other
workspaces are registered.
2026-05-25 02:42:07 -07:00
..