Testing MongoDb with Cypress.
Make sure you have installed all the following prerequisites on your development machine:
OS | Node | Docker Compose |
---|---|---|
Windows | winget install OpenJS.NodeJS.LTS |
scoop install docker-compose |
macOS | brew install node@18 |
brew install docker-compose |
- Clone the repository.
git clone git@github.com:burakkaygusuz/cypress-mongodb-example.git
- Change the directory.
cd cypress-mongodb-example
- Execute the .yml file to starting the MongoDb.
docker-compose -f docker-compose.yml up
- Run the test.
npm install && npm run test