Skip to content

Commit 27dba1a

Browse files
authoredJun 16, 2022
fix: eliminate calling deprecated function in cli-plugin-e2e-cypress and cli-plugin-e2e-nightwatch (#7158)
Co-authored-by: blzsaa <blzsaa@users.noreply.github.com>
1 parent 619965b commit 27dba1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎packages/@vue/cli-plugin-e2e-cypress/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ module.exports = (api, options) => {
4646

4747
const runner = execa(cypressBinPath, cyArgs, { stdio: 'inherit' })
4848
if (server) {
49-
runner.on('exit', () => server.close())
50-
runner.on('error', () => server.close())
49+
runner.on('exit', () => server.stop())
50+
runner.on('error', () => server.stop())
5151
}
5252

5353
if (process.env.VUE_CLI_TEST) {

‎packages/@vue/cli-plugin-e2e-nightwatch/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ module.exports = (api, options) => {
8080
const nightWatchBinPath = require.resolve('nightwatch/bin/nightwatch')
8181
const runner = execa(nightWatchBinPath, rawArgs, { stdio: 'inherit' })
8282
if (server) {
83-
runner.on('exit', () => server.close())
84-
runner.on('error', () => server.close())
83+
runner.on('exit', () => server.stop())
84+
runner.on('error', () => server.stop())
8585
}
8686

8787
if (process.env.VUE_CLI_TEST) {

0 commit comments

Comments
 (0)
Please sign in to comment.