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 Meditation Personal Transformation Life Purpose Coaching 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 Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Big Data
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee

This course includes:

  • 40 mins on-demand video
  • Full lifetime access
  • Access on mobile and TV
Development Programming Languages JavaScript

Learn Javascript Unit Testing With Mocha, Chai and Sinon

Learn to write unit tests with Mocha Chai and Sinon as well as learning how to TDD the right way
Rating: 4.0 out of 54.0 (286 ratings)
1,026 students
Created by Tyler Pedley
Last updated 8/2017
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • Write unit tests using Mocha, Chai and Sinon
  • Setup a new project that is ready for unit testing
  • Create programs following the TDD (Test Driven Development) patterns
  • Learn how to write more reliable and robust code
  • Learn how to expand your test suites with mocks, stubs and spies
  • Learn the use of spies and when to use them
  • Learn the use of stubs and when to use them
  • Learn the use of mocks and when to use them

Course content

6 sections • 14 lectures • 40m total length

  • Preview00:38
  • Preview03:04

  • Preview05:35
  • Preview04:24
  • Unit Testing Basics
    3 questions

  • What is Mocha?
    00:47
  • Using Mocha to prepare a test suite
    03:26

  • What is Chai?
    00:55
  • Chai - Should
    02:10
  • Chai - Expect
    02:36
  • Chai - Assert
    01:53

  • What is Sinon?
    01:48
  • Sinon - Spies
    02:44
  • Sinon - Stubs
    04:10
  • Sinon - Mocks
    05:54

  • Unit Testing Quiz
    9 questions

Requirements

  • Basic JavaScript knowledge
  • A computer with an internet connection

Description

In this course you will learn the basics of the test driven development workflow and I will show you the best practices for using TDD. You will learn how to use Mocha, Chai and Sinon together to test your Javascript code giving you peace of mind that your code works as expected. After completing this course you will be able to extensively test your nodejs applications and websites. I will also show you each of the different styles for writing unit tests so that you can use the one that you like the best.


Alot of employers are starting to require TDD knowledge and so why not get started here?

Who this course is for:

  • Anyone looking to learn how to write unit tests for their code
  • Anyone who wants to start writing more reliable and robust code

Instructor

Tyler Pedley
Software Engineer
Tyler Pedley
  • 4.0 Instructor Rating
  • 286 Reviews
  • 1,026 Students
  • 1 Course

Hi, My name is Tyler Pedley and I am an embedded software developer however I also lead a team of developers for a company working on multiple web / NodeJS projects. I always develop with agile in mind and have a great experience with agile. Mainly my courses will be on agile practices such as TDD/BDD however I also will teach NodeJs, TypeScript and JavaScript

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