Merge pull request #33413 from overleaf/revert-33040-em-parse-req-errors

Revert "Replace isZodErrorLike with custom error types in request validation"

GitOrigin-RevId: 1f51fe9e14ffabf283f1229552d3887136420f8f
This commit is contained in:
Eric Mc Sween
2026-05-05 08:57:53 -04:00
committed by Copybot
parent 98def949ec
commit 3da2d53acb
16 changed files with 80 additions and 100 deletions
@@ -54,7 +54,7 @@ describe('parseReq', () => {
}),
})
)
).toThrowError(expect.objectContaining({ name: 'InvalidParamsError' }))
).toThrowError(expect.objectContaining({ name: 'ParamsError' }))
})
it('should throw an error containing issues if the schema is invalid', () => {
@@ -75,11 +75,9 @@ describe('parseReq', () => {
)
).toThrowError(
expect.objectContaining({
zodError: expect.objectContaining({
issues: expect.arrayContaining([
expect.objectContaining({ path: ['body', 'name'] }),
]),
}),
issues: expect.arrayContaining([
expect.objectContaining({ path: ['body', 'name'] }),
]),
})
)
})