Cypress · Junior · Question 67 of 75
What is the role of the support file cypress/support/e2e.ts?
- 1Configuration of the browser window size only
- 2A file where all of the test results are saved
- 3Global setup like custom commands and hooks for all specs
Show the answer
Correct answer: Global setup like custom commands and hooks for all specs
Explanation
It runs before every spec file, so shared commands and global beforeEach hooks go there.