Cypress · Junior · Question 38 of 75
How do you run only one test while working on it?
- 1Rename all other specs to
.bak - 2Add
// @onlyabove the test - 3Use
it.only(...)temporarily
Show the answer
Correct answer: Use it.only(...) temporarily
Explanation
.only focuses a test or describe. Remove it before committing, or a CI check can fail on it.