I am testing a local website on LambdaTest using Cypress but getting error

I am testing a local website on LambdaTest using Cypress but getting error "visit cypress 1) visit url 0 passing (857ms) 1 failing 1) visit cypress visit url: CypressError: cy.visit() failed trying to load: http://localhost:3000/ The response we received from your web server was: > 503: Service Unavailable This was considered a failure because the status code was not 2xx. ".

Could you please help?

Hi Macy,

While testing a locally hosted website, you need to connect tunnel.

To do that, you can simply pass "tunnel;":true in the tunnel settings in your lambdatest-config.json file.

This will help you avoid the error you are getting.