Next.js Discord

Discord Forum

Cypress code coverage is not working with nextJS 13 app folder.

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
Hello everyone, I'm currently in the process of obtaining Cypress code coverage from a Next.js application. Our application employs the use of an 'app' folder as a distinguishing feature in Next.js 13, instead of the usual 'pages' folder. However, I've encountered a challenge where I'm unable to generate the code coverage. The error message states that the instruments cannot be located (please refer to the attached files). Interestingly, when I revert the folder structure back to using 'pages' instead of 'app', the code coverage is successfully generated. I'm wondering if there are any steps I can take to make the code coverage work seamlessly with the 'app' folder configuration, rather than switching back to 'pages'. Your insights would be greatly appreciated.

1 Reply

Jersey Wooly
Hi There

Did you manage to get this working. Having the same issue on Next 14