mercurius-js / mercurius

Implement GraphQL servers and gateways with Fastify
https://mercurius.dev/
MIT License
2.33k stars 234 forks source link

test: Refactoring tests that check if an error has been thrown #996

Closed alcidesqueiroz closed 1 year ago

alcidesqueiroz commented 1 year ago

I refactored almost 30 tests that were using try/catch to check if an error had been thrown. There are two problems with this approach:

closes #995

FYI: @simoneb