Skip to content

Navigation Menu

Sign in
Appearance settings

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 filesBrowse 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
Copy full SHA for 27dba1a

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

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

Copy file name to clipboardExpand all lines: packages/@vue/cli-plugin-e2e-cypress/index.js
+2-2Lines 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

Copy file name to clipboardExpand all lines: packages/@vue/cli-plugin-e2e-nightwatch/index.js
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.