Please help with error "Can't run because no spec files were found. We searched for specs matching this glob pattern" on Cypress tests

I am running Cypress tests on LambdaTest and getting this error “Can’t run because no spec files were found. We searched for specs matching this glob pattern”. How can I resolve this error?

Hi Brett,

By default, we look for spec files within cypress integration folder. If you have spec file in a different directory, you have to specify “specPattern” in Cypress configuration file.