Daniel Afonso

The 2025 State of JavaScript Testing

Is JSDOM holding your tests back? Discover why the future of testing is returning to the browser for higher fidelity and less flakiness.

The 2025 State of JavaScript Testing
#1about 3 minutes

Identifying the most common pain points in JavaScript testing

A survey of common developer frustrations reveals that mocking, configuration, and performance are the top challenges in modern JavaScript testing.

#2about 5 minutes

A look at real-world testing stacks across companies

An informal survey of eight different companies reveals a diverse but overlapping set of tools, with Jest, Playwright, and React Testing Library being common choices.

#3about 10 minutes

The shift from node-based runners back to the browser

Testing is moving from Node-based environments like JSDOM back to real browsers with tools like Vitest's browser mode, promising more realistic and reliable tests.

#4about 3 minutes

Playwright's dominance and the expansion of E2E tools

Playwright is leading the end-to-end testing space, while tools in this category are expanding to include visual, API, and accessibility testing capabilities.

#5about 1 minute

Using Mock Service Worker for reliable network mocking

Mock Service Worker (MSW) has become the de facto standard for network request mocking due to its powerful integrations and upcoming cross-process interception feature.

#6about 4 minutes

How AI is changing test generation and maintenance

AI tools like GitHub Copilot and natural language frameworks such as Auto Playwright are accelerating test creation, paving the way for self-healing tests.

#7about 2 minutes

Summary of key trends in modern JavaScript testing

The future of testing involves a return to browser-based component tests, the dominance of Playwright and MSW, and increasing productivity gains from AI tools.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

From learning to earning

Jobs that call for the skills explored in this talk.