Read OSS

cypress-io/cypress

4 articles

Prerequisites

01

Cypress from 30,000 Feet: Architecture, Monorepo Layout, and How to Navigate the Code

An orientation guide to the Cypress monorepo covering its four conceptual layers, ~33 internal packages, two runtime contexts, two execution modes, and the build system.

02

From `cypress run` to Test Execution: Tracing the Boot Sequence

A step-by-step trace of how a cypress run command propagates through CLI parsing, Electron spawning, server startup, DataContext creation, and spec iteration.

03

The Proxy Pipeline: How Cypress Intercepts Every Browser Request

A deep dive into Cypress's HTTP/HTTPS proxy — the 3-stage middleware pipeline that enables script injection, cy.intercept(), cookie management, and cross-origin support.

04

Inside the Driver: Commands, Queries, and the Retry Engine

Explores the browser-side test execution engine: the $Cypress object, $Cy mixin architecture, $Command lifecycle, CommandQueue, query vs action distinction, and the retry mechanism.