Skip to content

Commit

Permalink
fix: eliminate calling deprecated function in cli-plugin-e2e-cypress …
Browse files Browse the repository at this point in the history
…and cli-plugin-e2e-nightwatch (#7158)

Co-authored-by: blzsaa <blzsaa@users.noreply.github.com>
  • Loading branch information
blzsaa and blzsaa committed Jun 16, 2022
1 parent 619965b commit 27dba1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-e2e-cypress/index.js
Expand Up @@ -46,8 +46,8 @@ module.exports = (api, options) => {

const runner = execa(cypressBinPath, cyArgs, { stdio: 'inherit' })
if (server) {
runner.on('exit', () => server.close())
runner.on('error', () => server.close())
runner.on('exit', () => server.stop())
runner.on('error', () => server.stop())
}

if (process.env.VUE_CLI_TEST) {
Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-e2e-nightwatch/index.js
Expand Up @@ -80,8 +80,8 @@ module.exports = (api, options) => {
const nightWatchBinPath = require.resolve('nightwatch/bin/nightwatch')
const runner = execa(nightWatchBinPath, rawArgs, { stdio: 'inherit' })
if (server) {
runner.on('exit', () => server.close())
runner.on('error', () => server.close())
runner.on('exit', () => server.stop())
runner.on('error', () => server.stop())
}

if (process.env.VUE_CLI_TEST) {
Expand Down

0 comments on commit 27dba1a

Please sign in to comment.