Using Cypress bundled packages
Cypress provides a bunch of bundled tools and packages that we can use in our tests to make things easier, not because writing tests with Cypress is otherwise hard, but because these libraries are used by many developers already and so they're familiar with them. In this recipe, we're going to look at the bundled jQuery, Lodash, and Minimatch
libraries to test some of our use cases.
Getting ready
The project that we are going to work with resides in chapter11/start_here/using-cypress-bundled-packages
, inside the cloned repository:
- Open the project in VS Code.
- Open the terminal and run
npm install
to install the dependencies of the project. - Once done, run
npm run cypress:test
.This should open a new Cypress window. Tap the
users.spec.ts
file and you should see the tests, as follows:
Now that we have the Cypress...