From the course: End-to-End JavaScript Testing with Cypress.io
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Activating code completion
From the course: End-to-End JavaScript Testing with Cypress.io
Activating code completion
- [Instructor] Alright, well, now that we've seen how to type special characters, the next thing that we're going to take a look at is how to activate code completion on a file by file basis in Cypress projects. So you may have noticed, depending, of course, on your IDE settings, that when you start typing cy., nothing actually happens, right? Cypress, in particular, as you may have guessed by now, is a really good candidate for auto completion, because a lot of the time, the chains follow a predictable pattern, and at any given point, it might be really nice to know what your options are when you type that dot. It would be nice to know what we can actually do after this. And that would also be a great way to learn more about Cypress and some of the other commands that we haven't covered here. So in order to do this, all you really have to do is use something called the Cypress triple slash directive. And really what this means is you just have to type three slashes up at the top of…