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 Life Purpose Meditation 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++ Unreal Engine Blueprints 2D Game Development Blender
30-Day Money-Back Guarantee

This course includes:

  • 2 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
Development Software Testing Java Testing

JavaScript Testing Best Practices

Create successful test suites for frontend and backend JavaScript apps using the industry's best tools
Rating: 2.7 out of 52.7 (3 ratings)
40 students
Created by Packt Publishing
Last updated 12/2019
English
English
30-Day Money-Back Guarantee

What you'll learn

  • Master different testing types such as unit testing, behavioral testing, smoke testing, and more
  • Work with the most widespread JavaScript testing tools such as Jasmine, Mocha, and Jest
  • Master all Test-Driven Development best practices
  • Write tests in a comprehensible manner and set up the foundations for BDD
  • Organize and split your code in a way that allows efficient testing
  • Mock dependencies so you can focus on what really matters
  • Write a framework-agnostic, end-to-end testing suite for your frontend applications
  • Learn and apply industry best practices while also learning when it's necessary to break the rules of testing

Course content

5 sections • 25 lectures • 2h 11m total length

  • Preview02:58
  • Write Great Test Names
    05:00
  • Single Responsibility Principle
    05:10
  • Covering All Test Cases
    05:25
  • Improving Your Tests with a Linter
    03:33
  • Handling and Expecting Errors
    04:06
  • Test your knowledge
    5 questions

  • Preview11:38
  • Describing User Behavior
    02:07
  • Testing Only the Public API
    02:56
  • Using Realistic Input
    03:05
  • Writing Plain Language Tests
    07:26
  • Test your knowledge
    5 questions

  • Testing Middleware in Isolation
    04:57
  • Avoiding Testing Tested Code
    10:28
  • Using Static Code Analyzers
    04:17
  • Creating Realistic Mock Environments
    03:17
  • E2E Controller Testing with SuperTest
    08:26
  • Test your knowledge
    5 questions

  • Isolating and Testing Individual Components
    06:57
  • Mocking the API
    04:58
  • Testing the Frontend Efficiently
    05:59
  • Writing E2E Tests with NightmareJS
    07:09
  • Test your knowledge
    4 questions

  • Defining Application Key Functionalities
    06:52
  • Smoke Testing Best Practices
    04:00
  • Spotting Regressions
    02:52
  • CI Best Practices
    02:59
  • Course Summary
    04:29
  • Test your knowledge
    5 questions

Requirements

  • Prior knowledge of JavaScript and testing is assumed.

Description

JavaScript brings vast amounts of freedom to both frontend and backend developers. However, that freedom comes at a cost: the need to continually screen your applications for bugs and possible optimizations. The presence of multiple testing frameworks such as Jasmine and Mocha confuses newcomers and experienced JavaScript devs when it comes to deciding which one is the best tool for the job.

In this course, you will delve into different aspects and specifics of JavaScript testing. You will enhance your skills by mastering many topics that have been a source of confusion in the past—such as integration testing, E2E testing, and Behavioral Driven Development. You will learn how to break down your code into systems that you can challenge individually in an isolated environment, thus catching bugs early before they reach production.

With the testing skills you've acquired, you will examine the most available testing frameworks and tools (including Jasmine, Mocha, Chai, and Jest) to find the one that suits you best. Having the right tool for the job will help you work with Test-Driven and Behavioral-Driven Development on all application layers.

About the Author

Dimitris Loukas is a software engineer and is currently part of a growing start-up building a revolutionary referral marketing platform with Node.js, Angular, MySQL, Redis, and Docker. He is also developing trading software applications using C#, Aurelia and TypeScript. He is a Packt author and has developed many video tutorials in C#, .NET Core, and TypeScript. He has worked for two start-ups in the past, is active in the open-source community, and loves taking up small side-projects. He has developed microservices using C# and Node.js and has also mastered Angular, Aurelia, and Vue.js. He is an early adopter of .NET Core and is fascinated by modern JavaScript and where the web is going.

Who this course is for:

  • This course is for all types of JavaScript developers (frontend, backend, and full-stack) who wish to learn how to build efficient testing suites for all layers of their applications and following industry best practices.

Instructor

Packt Publishing
Tech Knowledge in Motion
Packt Publishing
  • 3.9 Instructor Rating
  • 56,859 Reviews
  • 345,463 Students
  • 1,423 Courses

Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.

With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.

From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.

Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.



  • 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.