8000 fix: eliminate calling deprecated function in cli-plugin-e2e-cypress … · vuejs/vue-cli@27dba1a · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 27dba1a

Browse files
authored
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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)
0