Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cy.stub): Update syntax to use callsFake() instead of deprecated third argument #5955

Closed
wants to merge 1 commit into from

Commits on Oct 17, 2024

  1. docs(cy.stub): update syntax to use callsFake() instead of deprecated…

    … third argument
    
    Update cy.stub() documentation to reflect the latest Sinon.JS syntax:
    - Remove deprecated `cy.stub(object, method, replacerFn)` syntax
    - Add `cy.stub(object, method).callsFake(replacerFn)` as the recommended approach
    - Update related examples to use the new syntax
    
    This change aligns the Cypress documentation with Sinon.JS v3.0.0+ practices,
    replacing the deprecated three-argument stub syntax with the `callsFake()` method.
    sadie100 committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    87faf51 View commit details
    Browse the repository at this point in the history