Video description
10+ Hours of Video InstructionLearn How to Use Test-Driven Development Techniques to Create High-Quality JavaScript Applications
Overview
Test-Driven Development for JavaScript LiveLessons brings you step-by-step knowledge to create high-quality JavaScript applications. The course teaches you how to apply test-driven technologies to create reliable and verifiable JavaScript solutions that are maintainable and adhere to best practices.
JavaScript has become an indispensable language in modern-day computing. Writing JavaScript is relatively straightforward but writing high-quality JavaScript and testing it thoroughly is much harder. Test-Driven Development for JavaScript LiveLessons uses Jest for defining and running JavaScript and TypeScript tests. It also covers how to use Jest to test many popular types of JavaScript solutions, including Node.js applications on the server and React and Angular solutions at the client.
Taught by experienced trainer and author, Andy Olsen, this course is your complete guide to mastering writing high-quality JavaScript. The course has hands-on demos throughout the lessons for better understanding of the topic areas.
The resource files for this LiveLesson can be downloaded from https://informit.core.ecollege.net/store/test-driven-development-for-javascript-livelessons-9780137864706.
About the Instructor
Andy Olsen is a freelance consultant, instructor, and developer with more than 30 years of experience in IT. Andy began his professional career as a C/C++ developer and morphed into Java, C#, and other languages as the years passed by. He is actively involved in a wide range of technologies including full stack development, cloud native applications, data science, and more. He is passionate about technology education and runs training courses around the world across diverse market sectors.
You can find Andy here:
https://www.linkedin.com/in/andy-olsen-481496/
http://olsensoft.com/
Skill Level
- Intermediate
- Set up a testing environment for JavaScript and TypeScript
- Organize tests into suites
- Write effective tests for the user interface and for server-side code
- Apply mocking techniques effectively
- Test React applications
- Test Angular applications
- Individuals implementing client-side JavaScript web clients or server-side Node.js applications
- JavaScript programming experience, either creating client-side web applications or server-side Node.js applications
Pearson publishes expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. These professional and personal technology videos feature world-leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, Pearson IT Certification, Sams, and Que Topics include: IT Certification, Network Security, Cisco Technology, Programming, Web Development, Mobile Development, and more. Learn more about Pearson Video training at http://www.informit.com/video.
Table of contents
- Introduction
- Lesson 1: Getting Started with JavaScript Testing
-
Lesson 2: Using Jest Matchers Effectively
- Learning objectives
- 2.1 Overview of Jest matchers
- 2.2 Testing for equality
- 2.3 Testing for range
- 2.4 Testing for null, undefined, or NaN
- 2.5 Testing for truth or falsehood
- 2.6 Testing for object properties
- 2.7 Testing for collections
- 2.8 Testing for errors
- 2.9 Defining and using a simple custom matcher
- 2.10 Defining and using a parameterized custom matcher
- Lesson 3: Writing Effective Tests
- Lesson 4: Testing Asynchronous Operations
- Lesson 5: Mocking
- Lesson 6: Additional Mocking Techniques
- Lesson 7: Effective Test-Driven Development (TDD)
-
Lesson 8: Testing the User Interface
- Learning objectives
- 8.1 DOM essentials
- 8.2 Introduction to JSDOM
- 8.3 Accessing content using JSDOM
- 8.4 Loading an HTML file in a test
- 8.5 Testing JavaScript code that accesses HTML content
- 8.6 Testing event handlers
- 8.7 Introduction to Testing Library
- 8.8 Types of query available in Testing Library
- 8.9 A closer look at the query API in Testing Library
- 8.10 Using companion libraries with Testing Library
- Lesson 9: Getting Started with Testing React Applications
-
Lesson 10: Going Further with Testing React Applications
- Learning objectives
- 10.1 Sample React application
- 10.2 Introduction to Enzyme
- 10.3 Shallow rendering in Enzyme
- 10.4 Full DOM rendering in Enzyme
- 10.5 Static rendering in Enzyme
- 10.6 Simulating events in Enzyme
- 10.7 Testing React state in Enzyme
- 10.8 Testing React effect hooks in Enzyme
- 10.9 Using React Testing Library
- Lesson 11: Getting Started with Testing Angular Applications
-
Lesson 12: Going Further with Testing Angular Applications
- Learning objectives
- 12.1 Testing a component that has state and functions
- 12.2 Component DOM testing
- 12.3 Testing a component that has child components
- 12.4 Defining a component that has inputs and outputs
- 12.5 Testing a component that has inputs and outputs
- 12.6 Testing the parent of a component that has inputs and outputs
- 12.7 Defining a service
- 12.8 Testing a service
- 12.9 Defining a pipe
- 12.10 Testing a pipe
- Summary
Product information
- Title: Test-Driven Development for JavaScript
- Author(s):
- Release date: July 2022
- Publisher(s): Pearson
- ISBN: 0137864590
You might also like
book
Clean Code in JavaScript
Get the most out of JavaScript for building web applications through a series of patterns, techniques, …
video
Mastering Clean Code in JavaScript
Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web …
book
Full-Stack Web Development with GraphQL and React - Second Edition
Unleash the power of GraphQL, React 17, Node, and Express to build a scalable and production-ready …
book
JavaScript from Frontend to Backend
Delve into the world of web development with Vue.js, Node.js, and MongoDB by exploring essential JavaScript …