Cypress v0.18.8stable Released Jul 19, 2018
Impact Score: 5/10

Cypress: 0.18.8

Source available โ€” automated, not human-reviewed

Component: cypress ยท Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-01.

Compatibility not verified โ€” check source notes
๐Ÿ“„ .MD
โšก Executive Summary (TL;DR)

Cypress v0.18.8. Source highlight: *Released 02/05/2017*

Who Does This Impact? (Role-Based Analysis)

๐Ÿ’ป Software Engineers & Devs

Check the source notes against the package and APIs you use before upgrading.

๐Ÿ“Š Product & Engineering Leads

Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.

โš™๏ธ DevOps & Security

Verify the target version, runtime requirements and rollback procedure in the official documentation.

โœจ New Features & Capabilities (2)

  • We've added our own special aliasing flavor to cy.stub() and cy.spy(). You can use the .as() command and we will associate spy and stub invocations (the same way we do with XHR aliasing and route matching).
  • We've added cy.clock() and cy.tick() which are both asynchronous methods to modify timers in your application under test. We automatically apply clock (even if you invoke it before your first cy.visit()) and will automatically reapply it after page load. cy.tick() will enable you to control the amount of time you want passed in your application. This is great for controlling *throttled* or *debounced* functions.

๐Ÿ”ง Bug Fixes & Patches (3)

  • We have officially implemented our Sinon.JS integration: adding cy.stub(), cy.spy(), cy.clock(), and cy.tick(). We've matched Sinon's API's and added `sinon-as-promised` and `chai-sinon`. In addition we've fixed Sinon performance issues, and improved the display of assertion passes and failures.
  • You can now use cy.stub() and cy.spy() synchronously. These both match the Sinon API identically. We will display `stub/spy` calls in the command log and provide the call count, arguments, context, and return values when you click on the log. Stubs are automatically reset between tests. Fixes #377.
  • We've enhanced `chai-sinon` by improving the output during passes or failures. Fixes #31.
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
*Released 02/05/2017* **Overview:** - We have officially implemented our [Sinon.JS](http://sinonjs.org/) integration: adding [cy.stub()](https://on.cypress.io/stub), [cy.spy()](https://on.cypress.io/spy), [cy.clock()](https://on.cypress.io/clock), and [cy.tick()](https://on.cypress.io/tick). We've matched Sinon's API's and added `sinon-as-promised` and `chai-sinon`. In addition we've fixed Sinon performance issues, and improved the display of assertion passes and failures. - These new API's will work well in both `unit` tests and `integration` tests. **Features:** - You can now use [cy.stub()](https://on.cypress.io/stub) and [cy.spy()](https://on.cypress.io/spy) synchronously. These both match the Sinon API identically. We will display `stub/spy` calls in the command log and provide the call count, arguments, context, and return values when you click on the log. Stubs are automatically reset between tests. Fixes [#377](https://github.com/cypress-io/cypress/issues/377). - We've added our own special aliasing flavor to [cy.stub()](https://on.cypress.io/stub) and [cy.spy()](https://on.cypress.io/spy). You can use the [.as()](https://on.cypress.io/as) command and we will associate spy and stub invocations (the same way we do with XHR aliasing and route matching). - We've added [cy.clock()](https://on.cypress.io/clock) and [cy.tick()](https://on.cypress.io/tick) which are both asynchronous methods to modify timers in your application under test. We automatically apply clock (even if you invoke it before your first [cy.visit()](https://on.cypress.io/visit)) and will automatically reapply it after page load. [cy.tick()](https://on.cypress.io/tick) will enable you to control the amount of time you want passed in your application. This is great for controlling *throttled* or *debounced* functions. - `sinon-as-promised` is automatically applied under the hood which extends Sinon and provides the `.resolves(...)` and `.rejects(...)` API's which makes it easy to stub promise returning functions. - We support and display multiple sub spies when using Sinon's `.withArgs(...)` function. **Misc:** - We've enhanced `chai-sinon` by improving the output during passes or failures. Fixes [#31](https://github.com/cypress-io/cypress/issues/31). - We've ripped out Sinon's argument serialization in favor of our own. - We no longer send Sinon to the remote application under test. In other words, you'll no longer see `sinon.js` being sent as a network request. - Deprecated the undocumented `cy.agents` function, but it will continue to work and will be officially removed later.