From 81fca3741a30013db07a6d144388b15bb4fdd5f4 Mon Sep 17 00:00:00 2001 From: drnir <79048310+drnir@users.noreply.github.com> Date: Thu, 6 Oct 2022 18:17:43 +0300 Subject: [PATCH] Update index.js Added null check for server.stop method --- packages/@vue/cli-plugin-e2e-cypress/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }