Skip to content
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

Correct mockAdminHandler behavior in MockClient #4537

Open
ThatOneBro opened this issue May 10, 2024 · 0 comments
Open

Correct mockAdminHandler behavior in MockClient #4537

ThatOneBro opened this issue May 10, 2024 · 0 comments

Comments

@ThatOneBro
Copy link
Member

mockAdminHandler strays far from the real implementation of the admin routes and is currently breaking at least a dozen tests in @medplum/app and maybe some in other packages as well.

Realistically we should probably enumerate at least different classes of routes in that handler and if there is no match by the end, we should throw. This should greatly reduce the amount of bugs that this part of MockClient could introduce

@ThatOneBro ThatOneBro added this to the Milestone Quality milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant