Cypress · Junior · Question 67 of 75

What is the role of the support file cypress/support/e2e.ts?

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.

Further reading

Problem with a question

Cypress · Junior · question 67

Test yourself

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

Take this quiz