-
Notifications
You must be signed in to change notification settings - Fork 4
Add tests for ApiError and user-facing error mapping #1635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 11-19-_ts-api-react-actions_enhance_error_handling_in_api_actions_and_hooks_with_user-facing_error_mapping
Are you sure you want to change the base?
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
319661e to
2954a60
Compare
cd40580 to
5ac0d36
Compare
2954a60 to
7d17768
Compare
5ac0d36 to
de2572f
Compare
| @@ -0,0 +1,44 @@ | |||
| import { describe, expect, it } from "vitest"; | |||
| import { ApiError } from "../errors"; | |||
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error test
| @@ -0,0 +1,108 @@ | |||
| import { describe, expect, it } from "vitest"; | |||
| import { z } from "zod"; | |||
| import { | |||
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error test
| import { z } from "zod"; | ||
| import { | ||
| ApiError, | ||
| RequestBodyParseError, |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error test
| mapApiErrorToUserFacingError, | ||
| UserFacingError, |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error test

No description provided.