WeAreDevelopers LIVE Jun 15, 2022

Yes, You Need to Unit Test your JavaScript. Here's How.

James Bender

Terrified that a simple edit will break your entire JavaScript application? Discover how strict test-driven development prevents regressions, stops over-engineering, and accelerates long-term delivery.

Pause
Mute Enter Fullscreen
#1 about 3 min

The problem with missing unit tests in JavaScript

The rapid churn of frameworks often distracts teams from implementing foundational code quality checks.

#2 about 3 min

Confronting common excuses for avoiding unit testing

Development teams frequently abandon testing methodologies due to perceived scale irrelevance or strict project timelines.

#3 about 3 min

Justifying testing costs to project decision makers

While test creation initially slows development sprints, it prevents costly maintenance delays before launch.

#4 about 6 min

Reversing traditional specification workflows with proactive testing

Defining expected outcomes as code forces developers to consume their own interfaces prior to deployment.

#5 about 7 min

Defining the core characteristics of robust unit tests

Effective logic evaluations must operate in total isolation to pinpoint failures without horizontal or vertical dependencies.

#6 about 5 min

Navigating the red green refactor development cycle

Writing minimal code to clear a failing validation provides a safe foundation for future optimization.

#7 about 5 min

Exploring testing environments with Jasmine and Jest

Upgrading to multi-threaded runtime environments drastically reduces performance bottlenecks across extensive application repositories.

#8 about 6 min

Building a fundamental test function using Jest

Structuring direct expected logic prevents false block failures by targeting distinct and isolated variants.

#9 about 11 min

Structuring behavior driven development stories with describe blocks

Constructing hierarchical human readable specification code simplifies collaboration barriers with business analysts.

#10 about 7 min

Adding iterative logic to pass progressive test blocks

Resolving incremental specification demands ensures new component operations adhere strictly to established architectural requirements.

#11 about 4 min

Implementing component and integration validation in React applications

Testing internal state transitions provides more reliable pipeline outcomes than querying brittle virtual DOM elements.

#12 about 5 min

Identifying scenarios where strict test driven development limits agility

Massive legacy codebases harboring deep architectural anti-patterns resist isolated dependency mocking without major logic refactors.

Matching moments

3:47 min

Tracing the evolution of unit and integration testing

Daniel Afonso Daniel Afonso · WWC 2025

5:05 min

Building a minimal training simulator with JavaScript and Jest

Mirjam Aulbach · WWC 2022

2:48 min

Implementing unit and snapshot testing using Jest framework

Dmitry Vinnik · LIVE

1:18 min

Reflecting on the core motivations for writing tests

Daniel Afonso Daniel Afonso · WWC 2025

44 sec

Treating unit tests as essential development tools

Annelore Egger Annelore Egger · WWC 2025

4:00 min

Adopting test-driven design as a strategic development methodology

Mirjam Aulbach · WWC 2022

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Testing React Backends Like a Pro: Mocking Databases with SQLite

David Morris

Solution Architect

David Morris
Open session

World Congress 2026 North America

One Repo, One Strategy: Scalable Full-Stack Testing in a Monorepo World

Bartosz Leczycki, Paweł Matynia

Bartosz Leczycki
Paweł Matynia
Open session

World Congress 2026 North America

Reinventing Testing Practices in the AI Era

Eric Deandrea

Java Champion & Senior Principal Software Engineer, IBM

Eric Deandrea
Open session

World Congress 2026 North America

Agents Can't Iterate Against Tests That Lie

Rocky Warren

Senior Staff Software Engineer at Clipboard

Rocky Warren
Open session

World Congress 2026 North America

When Humans Stop Writing Code: Rethinking Languages, Compilers, and Responsibility

Simon Auer

Organizer of flutter vienna meetup and CEO of marqably

Simon Auer
Open session

World Congress 2026 North America

Fast by Design: A Masterclass in High-Performance Web Engineering

Aaron Grogg

Senior web developer, committed to improving the user experience by improving web performance

Aaron Grogg