Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ AWS Certified Developer - Associate
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Personal Transformation Meditation Life Purpose Emotional Intelligence Neuroscience
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Marketing Strategy Google Ads (AdWords) Certification Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Modeling Data Analysis Big Data
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Blogging Freelancing Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
2021-02-02 08:12:38
30-Day Money-Back Guarantee
Development Web Development Node.Js

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
Rating: 4.2 out of 54.2 (3 ratings)
34 students
Created by Dávid Csejtei
Last updated 4/2020
English
English [Auto]
30-Day Money-Back Guarantee

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 sections • 29 lectures • 1h 59m total length

  • Preview02:01
  • Final result = package source code
    00:11

  • Preview01:38
  • Add tsconfig.json as TypeScript configuration
    03:02
  • Preview02:35
  • Jest config for tests
    01:58
  • .gitignore and .npmignore
    01:46

  • First test case and Food class
    03:42
  • Add name and unit to Food
    03:26
  • Add base values to Food
    07:45
  • Preview06:52
  • Invalid amount error in Food
    04:44
  • Refactor: extract validations from the constructor
    02:17
  • Current values of Food
    04:41
  • Change current amount
    05:14
  • How to calculate current calories value
    03:52
  • Calculate current calories value
    04:22
  • Replace string unit parameter with Unit enum
    03:51
  • Calculate other nutrient values as the amount changes
    06:47
  • Refactor other nutrient value calculation
    03:14
  • How to calculate current values as the calories changing
    03:55
  • Change calories with calculate other values
    06:02
  • Refactor: collect similar test cases into a describe
    03:00
  • Change fat and recalculate others
    03:35
  • Change protein, carbohydrate and recalculate other values
    08:07

  • Export types and classes from the package
    02:44
  • Production build, versions and publish
    05:37
  • Readme.md as a documentation
    11:38

  • Congratulations
    00:33

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.

Instructor

Dávid Csejtei
Senior Software Developer
Dávid Csejtei
  • 4.2 Instructor Rating
  • 148 Reviews
  • 8,792 Students
  • 2 Courses

I started programming when I was at the age of 13. I obtained a book called PHP: Black Book and realized that computer programming is an exhausting but still a super cool activity.

My first script was written in PHP using HTML and CSS for the UI parts. By the time I finished the script, I had already decided that I want to be a professional computer engineer. It was in 2003 and we can say I was only a child.

In the last few years I have worked as a Java and Web Programmer, CI Developer, Product Owner and DevOps Engineer. There are tons of languages and frameworks in my toolset like Java, PHP, NodeJs, React, Maven, Python, Jenkins, Git, SVN, Docker, Kubernetes, etc. It is hard to list all technologies I have ever used because I still have a passion for learning new things.

Currently I am a NodeJS developer at a multinational company.

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.