Nest.js GraphQL Integration Testing Tutorial

  Рет қаралды 6,332

Michael Guay

Michael Guay

Күн бұрын

Пікірлер: 17
@mguay
@mguay 11 ай бұрын
Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/
@prometheas
@prometheas 2 жыл бұрын
Appreciate how much care you put into making the information as accessible and easy to digest as possible. Great work!
@kirakira160
@kirakira160 2 жыл бұрын
Yes Sir !! We miss your gold videos Sir!❤ keep going please !💪
@ferm0479
@ferm0479 2 жыл бұрын
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 :).
@ferm0479
@ferm0479 2 жыл бұрын
Also another suggestion will be is to return the headers property directly from the integrationTestManager such as getAuthorizationToken() {return {Authorization: `Bearer ${this.accessToken}`}}.
@nishanthakumara8472
@nishanthakumara8472 2 жыл бұрын
Thanks Michael. Please release the videos in a short time of period at least twice a week
@MuhammadIlyas-dr7eg
@MuhammadIlyas-dr7eg 5 ай бұрын
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?
@DawidDahl
@DawidDahl Жыл бұрын
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 'src/private/error/error.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?
@AbiodunSam
@AbiodunSam Жыл бұрын
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.
@essawy897
@essawy897 11 ай бұрын
same, I think what he is doing is e2e testing.
@MuhammadIlyas-dr7eg
@MuhammadIlyas-dr7eg 5 ай бұрын
Exactly he is doing e2e testing here.
@dawid_dahl
@dawid_dahl Жыл бұрын
Thank you so much for making this video.
@riccardoaccomando9089
@riccardoaccomando9089 2 жыл бұрын
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.
@obinnaezedei856
@obinnaezedei856 Жыл бұрын
How you keep abstracting virtually everything kind of gets me confused and makes it hard for me to follow up
@nishus_vlog
@nishus_vlog 2 жыл бұрын
Thanks Michael
@michoe24
@michoe24 2 жыл бұрын
Nice!
@mguay
@mguay 2 жыл бұрын
Thank you so much sir.
Nest.js & Kafkajs | Error Handling + Class Design
41:03
Michael Guay
Рет қаралды 16 М.
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 107 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Build Nest.js Microservices With RabbitMQ, MongoDB & Docker | Tutorial
1:24:40
Why I Don’t Use GraphQL Anymore
16:29
Harry Wolff
Рет қаралды 70 М.
NestJs Testing Tutorial - Integration Testing
38:34
Code with Vlad
Рет қаралды 23 М.
Nest.js & GraphQL E2E Testing
53:10
Anson the Developer
Рет қаралды 3,1 М.
Gitlab DELETING Production Databases | Prime Reacts
17:27
ThePrimeTime
Рет қаралды 366 М.
How to structure a JS/TS monorepo | From Zero to Turbo - Part 1
11:58
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 98 М.
Test Driven Development (TDD) and unit testing with NestJS and Jest
1:00:04
Bull & NestJS = Achieving Scale in Node.js
31:41
Michael Guay
Рет қаралды 35 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН