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 app that we are going to work with resides in start/apps/chapter11/ng-cy-bun-pack
inside the cloned repository. However, the e2e tests are in the folder start/apps/chapter11/ng-cy-bun-pack-e2e
. And in the recipe, we’re going to modify files for the e2e project only. Let’s run the e2e tests by following these steps:
- Open the code repository in your code editor.
- Open the terminal, navigate to the code repository directory, and run the following command to run the e2e tests for the project:
npm run...