apollographql / apollographql/apollo-server
Add tests for `unexpectedErrorProcessingRequest`
Open
🧪 testing
- Dominant language
- TypeScript
- Stars
- 14k
- Forks
- 2k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 2
Description
Some additional context here:
https://github.com/apollographql/apollo-server/pull/6846#issuecomment-1226588086
We can exercise this hook a few ways, but in particular we should make sure that this hook is called when a different end hook throws.
i.e. parsing fails
`parsingDidEnd` hook throws
expect `unexpectedErrorProcessingRequest` to be called
Same for execution and validation as well.
Contributor guide
Assessment
This issue has not been assessed yet.