Adetayo Akinsanya unkletayo.dev
Engineering / Tags / #Vitest
#Vitest 15 Articles

Articles tagged with #Vitest

A curated list of engineering series, deep dives, and notes related to #Vitest.

Engineering Vitest Internals & Modern Testing Architecture • Part 14 2026-10-27

Capstone Project: Building a Custom Vitest Plugin & Test Runner Reporter

Build a custom Vitest reporter plugin from scratch to log execution metrics and export JSON test analytics.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 13 2026-10-23

Vitest Workspaces: Multi-Project Monorepo Test Execution Isolation

Configure Vitest Workspaces for multi-project monorepos using vitest.workspace.ts.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 12 2026-10-20

Coverage Engines: Bytecode Coverage via V8 AST Counters vs AST Instrumentation with Istanbul

Analyze code coverage providers in Vitest: V8 native bytecode counters vs Istanbul AST instrumentation.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 11 2026-10-16

Type-Level Testing: expectTypeOf and Static Type System Assertions

Master type testing in Vitest using expectTypeOf() and vitest typecheck mode.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 10 2026-10-13

In-Source Testing & Zero-Overhead Production Dead Code Elimination

Learn how to use Vitest in-source testing to co-locate code and tests without inflating bundle size.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 9 2026-10-09

Vitest Browser Mode: Executing Tests in Real Chromium, Firefox, and WebKit Engines

Explore Vitest Browser Mode: executing component tests in real browser engines with native DOM APIs.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 8 2026-10-06

Snapshot Testing Engine: AST Serializers, File Formatting, and Inline Snapshots

Learn how Vitest formats, updates, and serializes snapshots using custom snapshot serializers.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 7 2026-10-02

Fake Timers, Microtasks, and Event Loop Time Manipulation

Master Vitest's fake timer engine powered by @sinonjs/fake-timers to test intervals, timeouts, and dates.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 6 2026-09-29

Mocking Mechanics: vi.fn, vi.spyOn, and Module Hoisting Mechanics

Understand how Vitest module hoisting works, mock functions with vi.fn(), and spy on methods with vi.spyOn().

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 5 2026-09-25

Assertion Engine Mechanics: First-Principles Comparison of Vitest Matchers

A first-principles deep dive into Vitest's assertion engine. Compare toBe, toEqual, toStrictEqual, toContain, toMatchObject, and spy matchers down to V8 heap pointers and prototype resolution.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 4 2026-09-22

Vitest Configuration Mechanics: Merging vite.config.ts, test.include, and Environment Drivers

Learn how Vitest merges Vite configs, configures DOM environments (happy-dom/jsdom), and customizes test includes.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 3 2026-09-18

Worker Thread Pool Isolation: How Tinypool & Worker Threads Execute Tests in Parallel

Understand Vitest's process and thread isolation model powered by tinypool and Node worker_threads.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 2 2026-09-15

The Vite Module Graph & On-Demand Transformation in Unit Testing

Learn how Vitest leverages Vite's module graph, SSR transformation, and esbuild pipeline for rapid unit testing.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 1 2026-09-11

Why Jest Slows Down at Scale: Dual Module Graphs & ESM Interop Bottlenecks

Examine the technical causes of Jest test suite slowdowns: CommonJS transformations, custom module resolution, and memory leaks.

Read →
Engineering Vitest Internals & Modern Testing Architecture • Part 0 2026-09-08

Vitest Architecture & Modern Testing Systems: Series Introduction

Master Vitest from first principles: Vite transform pipelines, tinypool isolation, module hoisting, fake timers, and custom reporters.

Read →