Skip to content

test: add handleServerError unit tests for remedy serialization#1617

Open
dionlow wants to merge 3 commits into
fix/error-remedy-ui-cleanupfrom
test/error-remedy-ui-tests
Open

test: add handleServerError unit tests for remedy serialization#1617
dionlow wants to merge 3 commits into
fix/error-remedy-ui-cleanupfrom
test/error-remedy-ui-tests

Conversation

@dionlow

@dionlow dionlow commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add unit tests for handleServerError covering causes, detail-only, and detail+remedy delimiter serialization
  • Configure Jest moduleNameMapper so test imports resolve path aliases

Stacked on #1616.

Test plan

  • yarn test test/utils/handleServerError.test.ts

Dion Low and others added 3 commits June 18, 2026 14:22
Replace the visible [Remedy] token with a shared ProblemMessage component
that renders detail and remedy separately, and add spacing between save
errors and the read-object success callout in the Configure UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop shared apiProblem util and ProblemMessage component. Keep remedy
rendering inline in FormErrorBox and spacing changes in Configure.

Co-authored-by: Cursor <cursoragent@cursor.com>
Configure Jest moduleNameMapper for path aliases. Tests cover detail-only,
causes, and detail+remedy delimiter format matching the minimal fix.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dionlow dionlow force-pushed the test/error-remedy-ui-tests branch from 5566727 to 38285d8 Compare June 18, 2026 21:28
@dionlow dionlow changed the title test: add apiProblem and handleServerError unit tests test: add handleServerError unit tests for remedy serialization Jun 18, 2026
@dionlow dionlow force-pushed the fix/error-remedy-ui-cleanup branch from fbcc1e9 to 2ea4a7c Compare June 24, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant