diff --git a/packages/@vue/cli-plugin-e2e-cypress/index.js b/packages/@vue/cli-plugin-e2e-cypress/index.js index 8679121c44..7c024456a5 100644 --- a/packages/@vue/cli-plugin-e2e-cypress/index.js +++ b/packages/@vue/cli-plugin-e2e-cypress/index.js @@ -45,7 +45,7 @@ module.exports = (api, options) => { ) const runner = execa(cypressBinPath, cyArgs, { stdio: 'inherit' }) - if (server) { + if (server && server.stop) { runner.on('exit', () => server.stop()) runner.on('error', () => server.stop()) }