cypress
16.3.0 · 10 Nov 2026MIT7.7M / weekRepositoryHomepagenpmAtom feed
11.2.0 is the newest release of 11.x.
In short
1 breaking1 fixed19 changed
- Breaking
Read our Migration Guidewhich explains the breaking changes in more detail.
Release note
11.0.0
Released Nov 08, 2022
Summary:
Component Testing is now generally available for projects using React, Next.js, Angular, and Vue!
Component tests render and exercise your application's components in a real browser as you work. You can use your favorite Cypress commands and features to develop your components without running your whole app. Learn more in the Cypress 11 release blog post.
We have also massively improved our startup performance by shipping a snapshot of our binary instead of the source files. The performance boost applies to the time it takes from running a cypress command (e.g. cypress open) to when the Cypress app is opened. Results vary based on your situation, but we saw up to 84% faster startup times!
Breaking Changes:
Read our Migration Guidewhich explains the breaking changes in more detail.
Component Testing:
Removed
cssFile,cssFiles,style,styles,stylesheet, andstylesheetsfrom theoptionsargument to thecy.mount()function. We recommend writing test-specific styles in a separatecssfile you import in your test, or in yoursupportFile. See migration guide. Addresses #24328.Subsequent
cy.mountcalls within the same test remove the last mounted component from the DOM. Addresses #24329.mountHookfromcypress/reacthas been removed. We recommend replacing it withmountand a component. See migration guide. Addresses #24328.unmountfromcypress/reacthas been removed. We recommend using the API React provides for unmounting components, unmountComponentAtNode. See migration guide. Addresses #24328.mountCallbackfromcypress/vuehas been removed. We recommend usingmount. See migration guide. Addresses #24328.mountfromcypress/vuenow returns an object with both the VueWrapper (wrapper) and the component instance (component). Addresses #24342.When providing an inline
viteConfiginside ofcypress.config, anyvite.config.jsfile is not automatically merged. See migration guide. Addresses #24133.Angular providers passed as part of the mounting options are assigned at the module level using the
TestBed.configureTestingModuleAPI. This change means that module-level providers (resolved from imports or@Injectable({ providedIn: 'root' })can be overridden, but providers specified in@Component({ providers: [...] })are not overridden when usingcy.mount(MyComponent, { providers: [...] }). To override component-level providers, use theTestBed.overrideComponentAPI. See migration guide. Addresses #24047 and #23427.
General:
Communication with the Cypress Dashboard now verifies CAs and rejects any unauthorized calls. If you use a self-signed CA you need to set
npm_config_ca,npm_config_cafile, orNODE_EXTRA_CA_CERTS. Addresses #23980.
Experimental:
cy.session() now requires a setup command to use the command. Addresses #24311.
Features:
Incorporated V8 snapshots into the build process of the Electron binary to improve startup time and reduce the time to download and unzip the binary during installation. Startup time is the time from running a command to when Cypress's window is first opened. Addresses #18480.
cy.getCookie(),cy.getCookies(),cy.setCookie(),cy.clearCookie(), andcy.clearCookies()now accept a domain option. Addresses #24264.
Bugfixes:
Fix types associated with
cy.mount()that were incorrectly typed asany. Fixes #24330.The
cy.mount()snapshot now shows the mounted component instead of a blank page. Fixes #24138."Open in IDE" is no longer displayed in the command log for component tests. Fixes #24366.
Cypress now correctly handles CSVs and other non-html MIME types. Fixes #24297.
Cypress now supports project directories mounted on read-only file systems. Fixes #2064.
Snapshots now capture the AUT correctly when it has navigated away. Fixes #24506.
cy.pause()now functions correctly when called within thecy.origin()callback. Fixes #21495.When using dependencies within the
cy.origin()callback, errors now show the correct code frame. Fixes #23365.The select dropdown (in Front-end Framework, Bundler, Organization, Project, Preferred Editor) now highlights and adds a checkmark to the selected option. Fixes #21768.
The failure icon in the reporter header now displays correctly when there are a large number of successful tests. Fixes #21838.
Cypress now allows more than twenty sessions to be created in a single test. Fixed in #24379.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.