apollographql / apollographql/apollo-server

Add tests for `unexpectedErrorProcessingRequest`

Open
#6,848 3 comments 0 reactions 1 assignee Claimed by @trevor-scheer View on GitHub
🧪 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.