Nest.js GraphQL Integration Testing Tutorial

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

2 SUGGESTIONS:
1. `supertest-graphql` dependency should be in dev dependencies .
2. Make sure to install `tsconfig-paths` as dev dependency this gets added a bug with Jest that is not able to resolve modules from moduleMapper, and import as following in your `teardown.ts` and `setup.ts` on first line for hoisting issues, import 'tsconfig-paths/register'

Besides that Good work :).

ferm
Автор

Appreciate how much care you put into making the information as accessible and easy to digest as possible. Great work!

prometheas
Автор

Yes Sir !! We miss your gold videos Sir!❤ keep going please !💪

kirakira
Автор

Thanks Michael. Please release the videos in a short time of period at least twice a week

nishanthakumara
Автор

Thank you so much for making this video.

dawid_dahl
Автор

Hey Michae, I have one question here. Is this end to end test or integration? As per video title it is integration test but how end to end would be different these integration test?

MuhammadIlyas-dreg
Автор

Awesome! Could you please make a video on graphql-ws with authentication over cookies? In one of my project i struggled a bit in the authentication step, beacuse subscriptions-transport-ws is currently deprecated.

riccardoaccomando
Автор

I don't understand how this is working for you. When I try to run the code from setup.ts in my globalSetup jest-e2e.json file, I get this error. " Jest: Got error running globalSetup - /Users/dawiddahl/Projects/POC/poc-erp-adapter/src/integration-test/setup.ts, reason: Cannot find module which is understandable, because at that stage the AppModule I am trying to import has not yet been initialized.

Do you have any idea why this is working for you but not for me?

DawidDahl
Автор

I'm confused somehow about the what test was done here.
I suppose integration test doesn't need to call the endpoint by using httpserver while it's not e2e?
It thought it's in e2e that that should be done.

AbiodunSam
Автор

How you keep abstracting virtually everything kind of gets me confused and makes it hard for me to follow up

obinnaezedei
join shbcf.ru