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

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • 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..

  • @gaby19971029
    @gaby19971029 2 года назад +1

    flipping great

  • @vitormancio9631
    @vitormancio9631 2 года назад +1

    Awelsome, thanks ! :)

  • @yassinejk7860
    @yassinejk7860 2 года назад +1

    very helpful, thank you

  • @kamrans8846
    @kamrans8846 2 года назад

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

    • @leoechenique987
      @leoechenique987 Год назад

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

  • @faminaalam2568
    @faminaalam2568 2 года назад +1

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

  • @Gwgitu77
    @Gwgitu77 4 месяца назад

    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 };

  • @curryhousechicken
    @curryhousechicken 7 месяцев назад

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

  • @adilismail3593
    @adilismail3593 2 года назад +1

    What is an example for E2E in nodejs app ?

  • @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?

  • @virtumind
    @virtumind 2 года назад

    awsome I wish I find a job 😮‍💨

  • @rijwanhossain5210
    @rijwanhossain5210 2 года назад +1

    Increase the font size...