Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit b75bef6

Browse files
committed
add reading links for stubbing
1 parent 87e35a5 commit b75bef6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

slides/20-stubbing/PITCHME.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,13 @@ it('works via event handler', () => {
144144
Confirm the number of `window.track('load')` calls with `cy.visit` + `cy.reload`
145145

146146
---
147-
## 🏁 Stubbing methods
147+
## 📚 See also
148148

149149
- Read Cypress "Stubs, Spies, and Clocks" guide at [https://on.cypress.io/stubs-spies-and-clocks](https://on.cypress.io/stubs-spies-and-clocks)
150+
- "Stubbing and spying" recipes at [https://github.com/cypress-io/cypress-example-recipes](https://github.com/cypress-io/cypress-example-recipes#stubbing-and-spying)
151+
152+
---
153+
## 🏁 Stubbing methods
154+
150155
- To create a spy or a stub you need an object and the method name
151156
- Prepare for methods called on load using `onBeforeLoad` or via `cy.on('window:before:load', ...)`

0 commit comments

Comments
 (0)