Commit 87faf51
committed
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.1 parent a08c34b commit 87faf51
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 43 | | |
49 | 44 | | |
50 | 45 | | |
| |||
82 | 77 | | |
83 | 78 | | |
84 | 79 | | |
85 | | - | |
| 80 | + | |
86 | 81 | | |
87 | 82 | | |
88 | 83 | | |
| |||
0 commit comments