TOPIC 13/2216 MINNOT STARTED

Cypress from zero: install, open, project layout and the config file

Install Cypress with npm, open it for the first time, understand the folders it creates, and know what the config file, spec pattern, support file and fixtures ar…

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a workshop with labelled drawers. Tools go in drawers named for the job. A sign on the door lists the shop rules. You can try one tool at the bench while you watch, or run a whole batch with nobody watching.

Tom prepares a Cypress project for synthetic Daily List. separates specs, support and fixture data. A declares the selected testing type and settings. Run modes distinguish interactive open from an automated run; run can also be headed when explicitly selected.

The workshop picture helps organize tools, but a file is not discovered merely because it sits somewhere in a familiar-looking drawer. The effective pattern, exclusions and testing type matter.

The picture has a limit. Browser and Node processes have different responsibilities, current installation requirements do not redefine older locked projects, and opening the runner does not prove a test's behavior passed.

(SYNTHETIC / TRAINING ONLY: Daily List and every named person are invented.)

PLAIN WORDS · 2 in this section
cypress
A free tool that drives a web browser for checks.
redefine
give a new meaning to

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Configure and discover the intended Cypress test before verifying the controlled application behavior.

  1. Install
  2. Set
  3. Run
Workshop

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A drawer for each kind of toolThe folders
The sign on the doorThe config file
Trying a tool at the benchOpen mode
A batch run overnightRun mode

WHERE THIS PICTURE STOPS

  • Folders and module/config choices are configurable; inspect the effective testing type and pattern.
  • Opening a runner or declaring baseUrl does not start every server or prove application behavior.

HOOK

Drawers, sign, two ways to work.

TELL A FRIEND

A workshop: drawers, sign, two modes.

OFTEN MIXED UP WITH How the web works, for testers. That topic explains how the web works. This one installs Cypress and sets up a project to test a website.

Sources & standards — 5 sources
  1. Implementation-specific

    Cypress installation ↗ — Cypress.io · Current live Node/package requirements; dependency versus postinstall binary availability (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Current live Node/package requirements; dependency versus postinstall binary availability. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  2. Implementation-specific

    Cypress open mode ↗ — Cypress.io · Interactive launchpad workflow; Command Log, snapshots and console details (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Interactive launchpad workflow; Command Log, snapshots and console details. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  3. Implementation-specific

    Cypress configuration ↗ — Cypress.io · Testing-type settings; CommonJS/ESM file modes and nearest package type; documented15.17.0 load change (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Testing-type settings; CommonJS/ESM file modes and nearest package type; documented15.17.0 load change. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  4. Implementation-specific

    Cypress command line ↗ — Cypress.io · Open/run selection; run headless default and headed override; browser/spec options (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Open/run selection; run headless default and headed override; browser/spec options. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  5. Implementation-specific

    Cypress writing and organizing tests ↗ — Cypress.io · Specs, fixtures and support paths; configured test structure (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Specs, fixtures and support paths; configured test structure. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

PRACTISE AND KEEP

Sources for this topic — 5 sources
  1. Implementation-specific

    Cypress installation ↗ — Cypress.io · Current live Node/package requirements; dependency versus postinstall binary availability (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Current live Node/package requirements; dependency versus postinstall binary availability. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  2. Implementation-specific

    Cypress open mode ↗ — Cypress.io · Interactive launchpad workflow; Command Log, snapshots and console details (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Interactive launchpad workflow; Command Log, snapshots and console details. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  3. Implementation-specific

    Cypress configuration ↗ — Cypress.io · Testing-type settings; CommonJS/ESM file modes and nearest package type; documented15.17.0 load change (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Testing-type settings; CommonJS/ESM file modes and nearest package type; documented15.17.0 load change. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  4. Implementation-specific

    Cypress command line ↗ — Cypress.io · Open/run selection; run headless default and headed override; browser/spec options (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Open/run selection; run headless default and headed override; browser/spec options. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  5. Implementation-specific

    Cypress writing and organizing tests ↗ — Cypress.io · Specs, fixtures and support paths; configured test structure (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Specs, fixtures and support paths; configured test structure. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.