Cypress · Junior · Question 6 of 75

What is a spec file in Cypress?

Show the answer

Correct answer: A test file, e.g. login.cy.ts, containing tests

Explanation

By default end-to-end specs live in cypress/e2e and match *.cy.{js,ts}. Each spec runs in a fresh browser context.

Further reading

Problem with a question

Cypress · Junior · question 6

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