For E2E tests in a Laravel project:

Use Cypress with mocking for all requests to test ONLY the front-end + Laravel HTTP Tests for the back-end; or

Use Cypress without mocking and test both front-end and back-end

I had this question when I took a look at the project github.com/koel/koel.

They separate the tests:

Front-end test with Cypress (100% mock)
Request tests with Http Test
TDD
Vue component testing

That's the question.

#braziliandev #laravel #cypress #tdd #typescript #programming