Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Custom Node.js package in Typescript with Jest TDD
Rating: 4.2 out of 5(21 ratings)
126 students

Custom Node.js package in Typescript with Jest TDD

Take your Node.js applications to the next level and organize your features into test-driven modules
Created byDávid Csejtei
Last updated 2/2021
English

What you'll learn

  • Using Test-Driven Development (TDD) in a real life package
  • Create own NodeJS package
  • Publish and update package
  • Take advantage of the features provided by TypeScript

Course content

5 sections29 lectures1h 59m total length
  • What will this course be about?2:01

    What will this course be about? I use TDD in my projects almost every day, so I belive I can teach you how to use the method through a real module I created earlier. I had to create a nutrient counting website to help women with gestational diabetes. The user selects a food, then sets the nutrient intake from which nutrient, and then the page calculates the other values. This way you can calculate the rest of any ingredient, so if you want to bring in 20 grams of carbohydrate from white bread, you can see how much you can eat to get it. Because any value can be used to calculate all others, the program can save a lot of time for the user.

    The website consisted of a UI and an API. The UI is made in React and the API is in NodeJS using TypeScript. The heart of the API was the nutrient counter module, which I created in a separate npm package. I'm going to rebuild this nutrient counting module from scratch, with your help. So instead of trying to explain in an academic example how you can develop it in TDD in a NodeJS environment, I'll show you on a real project. Work with me and learn how to work effectively with TDD.

    Of course, you will encounter more difficult situations during your work that are not covered in this course, but still I think you can learn the basics. If you have any questions during the course, feel free to ask me and I will try to do my best to answer your question! I would also appreciate that if you encounter a more complex task that you cannot develop in TDD, you would describe it to me. I would be happy to expand the course with my suggestion for your example. Good luck and have fun!

  • Final result = package source code0:11

    The link below (https://github.com/davidcsejtei/nutrition) gives you access to the public github repository, which contains the final result. You can call on the final source code if you get stuck due to an error. In addition, you can always ask me on the Q&A page for the course.

Requirements

  • Basic knowledge of JavaScript
  • Basic knowledge of NodeJS
  • Basic knowledge of TDD - Test Driven Development

Description

Have you tried the TDD method before, but failed? Don't you understand how to write the test first and then build the application logic for it? It’s not clear to you what benefits test-driven development brings you? In this course, I will lead you through the test-driven development of a real software module. You can also see the big picture and the small details.

Effective automated tests are difficult to write. You need to practice a lot to be able to apply the principles and specific implementation steps to any project. Take the course and get the funds you need to continue practicing!

Make your own Node.js package with test driven development using TypeScript tested with Jest. Through a real example, I will help you understand and learn how to build high quality modules for your projects that take advantage of TypeScript and have the least amount of bugs thanks to TDD.

In this course we will make a copy of a package from an application I made earlier. This means that you can learn the package creation method that I use on a daily basis through a code that represents true business value.

Any questions you have, feel free to contact us, I will be happy to answer!

Who this course is for:

  • Intermediate JavaScript developers who want to take their knowledge to the next level.