@cypress/webpack-dev-server
6.2.0 · 14 Nov 2026MIT151.9k / weekRepositoryHomepagenpmAtom feed
88 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 6.x · latest line
6.2.0
14 Nov 2026You can now listen to
before:runandafter:runevents in the plugins file. See thebefore:runandafter:rundocs for more information. Addressed in #14238 and #14263.You can now listen to
before:specandafter:specevents in the plugins file. See thebefore:specandafter:specdocs for more information. Addressed in #9646 and #14178.The
Timed out retryingerror message now displays the amount of time Cypress retried. Addresses #5781.
Released 12/21/2020
Features:
You can now listen to
before:runandafter:runevents in the plugins file. See thebefore:runandafter:rundocs for more information. Addressed in #14238 and #14263.You can now listen to
before:specandafter:specevents in the plugins file. See thebefore:specandafter:specdocs for more information. Addressed in #9646 and #14178.The
Timed out retryingerror message now displays the amount of time Cypress retried. Addresses #5781.
Bugfixes:
Getting an alias of
cy.intercept()usingcy.get()will no longer always yieldnull. Fixes #9306.cy.intercept()will now automatically responds to CORS preflight requests (HTTPOPTIONSrequests) that match defined routes. Fixes #9599.Response errors from
forceNetworkErrorcan now be awaited usingcy.intercept()andcy.wait(). Fixes #9062.Using
cy.log()inside.then()no longer breaks the subject value in the command chain. Fixes #8084.Using
Cypress.Commands.overwriteto overwrite.then()now preserves the properthiscontext and sets aliases correctly. Fixes #5101.Using
Cypress.Commands.overwriteto overwritecy.route()orcy.intercept()and wait on its alias now properly works. Fixes #3890 and #9580.Cypress no longer fails to find specs if you set the fixtures folder to be the same as the integration folder. Fixes #14226.
Cypress no longer fails to show error code frames if the spec filename has a space in it, fixes #7553.
Misc:
scrollBehavioris now an allowed type when passed as test configuration. Addresses #9643.The
FileObjecttype for the file argument of thefile:preprocessorevent now includes theEventEmittertype. Addresses #9276.
Dependency Updates:
Upgraded
electronfrom11.0.2to11.0.3. Addressed in #9409.
6.1.0
6 Oct 2026- Deprecated
Cypress.momenthas been deprecated and will be replaced in a future release. Consider migrating to a different datetime formatter. Addresses #8714. There's a new
scrollBehaviorconfiguration option that controls the viewport position when an element is scrolled prior to action commands. Possible values are'top','bottom','center','nearest', andfalse, with'top'being the default.scrollBehavior: falsedisables scrolling altogether.scrollBehaviorcan be specified in global configuration, test configuration or individual action commands viaoptions. Addresses #871 and #4356.The Tests tab in the Test Runner now orders folders before files. This matches the ordering of most IDEs' file explorers. Addresses #7334.
Released 12/07/2020
Features:
There's a new
scrollBehaviorconfiguration option that controls the viewport position when an element is scrolled prior to action commands. Possible values are'top','bottom','center','nearest', andfalse, with'top'being the default.scrollBehavior: falsedisables scrolling altogether.scrollBehaviorcan be specified in global configuration, test configuration or individual action commands viaoptions. Addresses #871 and #4356.The Tests tab in the Test Runner now orders folders before files. This matches the ordering of most IDEs' file explorers. Addresses #7334.
Bugfixes:
Responses stubbed from
cy.intercept()will now automatically setAccess-Control-Allow-OriginandAccess-Control-Allow-Credentialsto permissive values unless explicitly overridden. Fixes #9264.The
Cannot read property "fireChangeEvent" of undefinederror will no longer throw during a race condition when usingcy.intercept(). #9170HTTP responses that cannot have a body (like HTTP 304 and HTTP 204) can now be awaited using
cy.intercept(). Fixes #8934 and #8999.We fixed an issue where HTTP redirects could not be awaited using
cy.intercept()unless dynamically intercepted. Addressed in #9097.Tests will no longer hang in certain situations when there's an error in a
before()hook. Fixes #9162.We no longer strip
/from URLs when they are explicitly passed with query paramaters. Fixes #9360.Fixed the regression in
Cypress.dom.isVisiblebehavior for elements withposition: fixed, addresses #8998 and #9031.
Deprecations:
Deprecations still work as before but will be removed from Cypress in a future release. We encourage you to update your code now to remove uses of deprecations.
- Deprecated
Cypress.momenthas been deprecated and will be replaced in a future release. Consider migrating to a different datetime formatter. Addresses #8714.
Misc:
We collect more environment variables from Bitbucket to better detect reruns. Addresses #9309.
waitForAnimationsandanimationDistanceThresholdtypes are now included for all actionable commands. Addresses #8854.
Dependency Updates:
Upgraded
mocha-junit-reporterfrom1.23.1to2.0.0. Addressed in #9528.
6.0.0
26 Aug 2026- Deprecated
cy.server()andcy.route()have been deprecated. In a future release, support forcy.server()andcy.route()will be moved to a plugin. We encourage you to usecy.intercept()instead. Addressed in #9185. - Deprecated
experimentalFetchPolyfillhas been deprecated. We encourage you to usecy.intercept()to intercept requests using the Fetch API instead. Cypress now always throws an error when asserting on an element that doesn't exist in the DOM (unless you're asserting that the element should
not.exist). Assertions such asnot.visible,not.contains,not.have.class, etc will now fail when used on non-existent DOM elements. Addresses #205.
Released 11/23/2020
Summary:
Cypress now offers full network stubbing support with the introduction of the
cy.intercept()command (previouslycy.route2()). Withcy.intercept()your tests can intercept, modify and wait on any type of HTTP request originating from your app.Breaking Changes:
Please read our Migration Guide which explains the changes in more detail and how to change your code to migrate to Cypress 6.0.
Cypress now always throws an error when asserting on an element that doesn't exist in the DOM (unless you're asserting that the element should
not.exist). Assertions such asnot.visible,not.contains,not.have.class, etc will now fail when used on non-existent DOM elements. Addresses #205.DOM elements where the CSS style (or ancestors) are
opacity: 0are no longer considered visible. However these are still considered actionable and "any action commands" interacting-with-elements#Actionability used to interact with the element will perform the action. This matches browser's implementation on how they regard elements withopacity: 0. Addresses #4474.The type yielded by
cy.wait(alias)has changed in order to support use ofcy.intercept(). Addressed in #9266.The
experimentalNetworkStubbingoption has been removed and made the default behavior. You can safely removed this configuration option. Addressed in #9185.When using
.type()and.click()on elements inside acontenteditableelement, the events are now properly triggered on the inside elements. This may cause unintended consequences if you were relying on the previous behavior. Addressed in #9066.We removed several deprecation errors around APIs that were removed in versions of Cypress prior to 4.0.0. This will not cause any changes for anyone upgrading from a 4.0+ version of Cypress. For a full list of all APIs affected see #8946.
We updated our HTTP status codes and reason phrases to match Node.js
http.STATUS_CODES. If you have code that relies on a reason phrase, then this could affect you. Addressed in #8969.JSON request and response bodies captured by
cy.intercept()are now automatically parsed, removing the need to manually doJSON.parse. Addressed in #9280.
Deprecations:
Deprecations still work as before but will be removed from Cypress in a future release. We encourage you to update your code now to remove uses of deprecations.
- Deprecated
cy.server()andcy.route()have been deprecated. In a future release, support forcy.server()andcy.route()will be moved to a plugin. We encourage you to usecy.intercept()instead. Addressed in #9185. - Deprecated
experimentalFetchPolyfillhas been deprecated. We encourage you to usecy.intercept()to intercept requests using the Fetch API instead. cy.route2()was renamed tocy.intercept(). We encourage you to update usages ofcy.route2()to usecy.intercept(). Addressed in #9182.
Features:
The new
cy.intercept()command can be used to manage the behavior of HTTP requests at the network layer. Addressed in #9182.We now pass
—disable-dev-shm-usageto the Chrome browser flags by default. This will write shared memory files into/tmpinstead of/dev/shm. If you're passing this flag in yourpluginsfile, you can now remove this code. Addresses #5336.A warning is now displayed when passing invalid configuration keys through the CLI. Addresses #428.
The
cypress versioncommand now also displays the current Electron and bundled Node versions. Addresses #9180.The
cypress versioncommand now accepts a--componentflag that allows you to print the version of specific components of Cypress. ie Electron, Node, etc. Addresses #9214.
Bugfixes:
We fixed a regression introduced in 3.5.0 that would cause
.type()to not type the entire string when focus was called away from the target element. Fixes #9254..type()and.click()now properly work on elements inside acontenteditableelement. Fixes #2717 and #7721.We fixed a regression introduced in 5.6.0 that would cause the Test Runner to crashes and display a white page when switching tabs while tests are running. Fixes #9151.
Fixed an issue where
Content-Lengthforcy.route2request bodies could be incorrectly recalculated. Fixes #9166.
Documentation Changes:
Our Migration Guide has a new section for 6.0 migration.
Many of our docs examples have been updated to use
cy.intercept()in place ofcy.route()including our Network Requests doc.
Misc:
Added the type of
redirectsand changedredirectedToUrloptional for Response types. Addresses #9275.
Dependency Updates
- 5.x
5.6.3
10 Aug 2026Reading the note…
5.6.2
31 May 2026Reading the note…
5.6.1
9 May 2026Reading the note…
5.6.0
22 Jan 2026Reading the note…
5.5.0
13 Jan 2026Reading the note…
5.4.1
8 Dec 2025Reading the note…
5.4.0
5 Dec 2025Reading the note…
5.3.0
3 Dec 2025Reading the note…
5.2.1
19 Nov 2025Reading the note…
5.2.0
19 Nov 2025Reading the note…
5.1.5
7 Nov 2025Reading the note…
5.1.4
4 Nov 2025Reading the note…
5.1.3
3 Oct 2025Reading the note…
5.1.2
18 Sep 2025Reading the note…
5.1.1
18 Aug 2025Reading the note…
5.1.0
14 Aug 2025Reading the note…
5.0.0
8 Aug 2025Reading the note…
- 4.x
4.1.1
24 Jul 2025Reading the note…
4.1.0
13 May 2025Reading the note…
4.0.2
25 Mar 2025Reading the note…
4.0.1
15 Jan 2025Reading the note…
4.0.0
8 Jan 2025Reading the note…
- 3.x
3.11.0
27 Aug 2024Reading the note…
3.10.1
1 Aug 2024Reading the note…
3.10.0
7 Jun 2024Reading the note…
3.9.0
30 May 2024Reading the note…
3.8.0
18 Apr 2024Reading the note…
3.7.4
30 Jan 2024Reading the note…
3.7.3
12 Jan 2024Reading the note…
3.7.2
26 Dec 2023Reading the note…
3.7.1
22 Nov 2023Reading the note…
3.7.0
7 Nov 2023Reading the note…
3.6.1
7 Sep 2023Reading the note…
3.6.0
7 Sep 2023Reading the note…
3.5.3
29 Aug 2023Reading the note…
3.5.2
4 Aug 2023Reading the note…
3.5.1
18 Jul 2023Reading the note…
3.5.0
26 Jun 2023Reading the note…
3.4.1
7 Apr 2023Reading the note…
3.4.0
20 Mar 2023Reading the note…
3.3.1
14 Mar 2023Reading the note…
3.3.0
21 Feb 2023Reading the note…
3.2.4
20 Feb 2023Reading the note…
3.2.3
24 Jan 2023Reading the note…
3.2.2
3 Jan 2023Reading the note…
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.