NickBolles / cypress-nuxt

Cypress plugin to make unit tests with nuxt simple
26 stars 0 forks source link

How to detect that the server has finished initializing before running the tests #7

Open SirMishaa opened 4 years ago

SirMishaa commented 4 years ago

Good evening,

I started an application with Nuxt. I set up Cypress to perform e2e tests.

The problem is that to run my tests, the server needs to be launched, but since "nuxt-ts" launches the server but the process remains active, so I am not able to detect when the server has finished initializing.

Any idea how I can work around this problem? I haven't seen a Cypress module for Nuxt, but I know that on Vue 2/3, it works fine (https://cli.vuejs.org/core-plugins/e2e-cypress.html)

Thank you