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...
hello degraphe...thanks so much i really enjoyed the content..
Awelsome, thanks ! :)
Thank you too!
flipping great
I am waiting for end-to-end graphql API testing. when you will upload it?
Nice explanation. Good job!
Please provide a full nodejs testing include mock, database,....
Thanks i came here for this now i've to search in another place haha
very helpful, thank you
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?
Thanks a lot
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 };
awsome I wish I find a job 😮💨
What is an example for E2E in nodejs app ?
why the video so blurry? I can't see squats
Increase the font size...
BTW you are doing great work
keep it up