Skip to content

Commit

Permalink
fix(condo): DOMA-10415 remove 'errors' and 'originalError' for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pahaz committed Oct 8, 2024
1 parent 88d98a7 commit bd70146
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/codegen/generate.test.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ class TestClientResponseError extends Error {

get errors () {
// NOTE(pahaz): we want to use only public error fields during the rests
// TODO(pahaz): DOMA-10348 drop `doma` compatibility
// TODO(pahaz): DOMA-10415 drop 'errors' and 'originalError'
return map(toArray(this._constructor?.errors), error => pick(error, ['message', 'name', 'locations', 'path', 'extensions', 'data', 'errors', 'originalError']))
// TODO(pahaz): DOMA-10348 drop `data` field compatibility
return map(toArray(this._constructor?.errors), error => pick(error, ['message', 'name', 'locations', 'path', 'extensions', 'data']))
}
}

Expand Down

0 comments on commit bd70146

Please sign in to comment.