Cypress · Middle · Question 66 of 77
What's the role of defineConfig in cypress.config.ts?
- 1Typed configuration helper with editor autocompletion
- 2A function that starts the browser for the tests
- 3A command that defines new custom commands
Show the answer
Correct answer: Typed configuration helper with editor autocompletion
Explanation
It returns the config unchanged but gives TypeScript types for options like e2e, component and setupNodeEvents.