INTEGRATION TESTING CRASH COURSE IN 80 MINUTES WITH JEST AND SUPERTEST - Node JS (2022)

Поділитися
Вставка
  • Опубліковано 10 лют 2025
  • In this video we will have an in depth look into the building and Integrated Testing of Our CRUD application using Node JS.
    We will employ packages like Supertest, Jest, File System and build a complete CRUD API from beginning to end using Test Driven Development.
    Github repository: github.com/deb...
    Unit testing video: • Unit Testing with JEST...

КОМЕНТАРІ • 16

  • @durotemy8410
    @durotemy8410 2 роки тому +1

    hello degraphe...thanks so much i really enjoyed the content..

  • @vitormancio9631
    @vitormancio9631 2 роки тому +1

    Awelsome, thanks ! :)

  • @GABRIEL_C_R
    @GABRIEL_C_R 2 роки тому +1

    flipping great

  • @faminaalam2568
    @faminaalam2568 2 роки тому +1

    I am waiting for end-to-end graphql API testing. when you will upload it?

  • @kamrans8846
    @kamrans8846 2 роки тому

    Nice explanation. Good job!
    Please provide a full nodejs testing include mock, database,....

    • @leoechenique987
      @leoechenique987 2 роки тому

      Thanks i came here for this now i've to search in another place haha

  • @yassinejk7860
    @yassinejk7860 2 роки тому +1

    very helpful, thank you

  • @MeitarKeren-m6j
    @MeitarKeren-m6j Рік тому

    Thank you very much for this video! it was really educational. I have a couple of questions:
    1. You didn't actually check that the book was deleted / updated correctly, should this be done in integration testing?
    2. If you would have checked for actual deletion or update, I'm not sure that the mock of the file would allow it to be tested since it will always return the same json file, is there any solution to this issue?

  • @Gwgitu77
    @Gwgitu77 8 місяців тому

    Thanks a lot

  • @filipedonatti8872
    @filipedonatti8872 2 роки тому +1

    I had an error in the the "save" function. I had to remove the path.join property. So I substituted the entire function and re-wrote it like so:
    const fs = require('fs');
    function save(bookData){
    try {
    const string = JSON.stringify(bookData);
    fs.writeFileSync('../data/books.json', string);
    return true;
    } catch (error) {
    console.log('Error at save function');
    return false
    }
    };
    module.exports = { save };

  • @virtumind
    @virtumind 2 роки тому

    awsome I wish I find a job 😮‍💨

  • @adilismail3593
    @adilismail3593 2 роки тому +1

    What is an example for E2E in nodejs app ?

  • @curryhousechicken
    @curryhousechicken 11 місяців тому

    why the video so blurry? I can't see squats

  • @rijwanhossain5210
    @rijwanhossain5210 2 роки тому +2

    Increase the font size...