apollographql / apollographql/fullstack-tutorial
Error object in Integration test is different compared to error in playground
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.2k
- Forks
- 808
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I wanted to test the error scenario for my query/mutation but I’m unable to do so. I've reproduced the issue in this [PR here at this line](https://github.com/apollographql/fullstack-tutorial/pull/153/files#diff-e38243b449b86e768973cba723ec7c8fR103).
Basically the problem is that when one of our datasource methods triggers an error then the `errorFromResponse` method is called and then the error is returned and we see that error in our playground but when you try to test it and mock the error in your test the error you get from query/mutation method from `apollo-server-testing` are both different.
#153
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza en el caso de prueba de integración de PR #153, específicamente en el diff enlazado de la línea 103, y sigue el error de datasource a través de errorFromResponse y de las llamadas de query/mutation de apollo-server-testing. Compara ese resultado con el error del playground y ejecuta la prueba de integración afectada. Se considera completado cuando la prueba reproduce el fallo de datasource con la misma estructura o mensaje de error que el playground.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- graphql, node.js, typescript
- Área
- api, testing
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100