Cypress · Junior · Question 52 of 75
Where are custom commands usually registered?
- 1In every spec that needs them
- 2In
cypress.config.tsundercommands - 3In
cypress/support/commands.ts
Show the answer
Correct answer: In cypress/support/commands.ts
Explanation
The support file runs before every spec, so commands defined there are available everywhere.