Cypress · Junior · Question 4 of 75
Where is the main Cypress configuration usually defined?
- 1In a
.cypressrcfile in each test folder - 2In
cypress.config.tsorcypress.config.js - 3In
package.jsonunder acypresskey
Show the answer
Correct answer: In cypress.config.ts or cypress.config.js
Explanation
The config file sets baseUrl, spec patterns, viewport, timeouts, retries and Node event handlers via defineConfig.