Where to install Cypress when testing frontend/backend utilities and doing end-to-end tests?

Viewed 135

I have a React project with a Node.js backend. Both parts are in seperate folders with separate package.json and node_modules.

The thing is that I want to do backend unit tests, frontend unit tests, and end-to-end tests.

I don't know if I should install Cypress twice on both the frontend and backend. Or there would be a way to only keep one Cypress installation.

1 Answers

Cypress runs in the browser and isn't used to test backends directly as far as I am aware.

I suggest placing it in the root of the repo as it tests both the frontend and backend projects.

Related