Cypress · Middle · Question 66 of 77

What's the role of defineConfig in cypress.config.ts?

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.

Further reading

Problem with a question

Cypress · Middle · question 66

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz