Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit697bb44

Browse files
committed
fix: should correctly resolve cypress bin path for Cypress 10
Fixes#7194
1 parentb2b07a5 commit697bb44

File tree

1 file changed

+12
-2
lines changed
  • packages/@vue/cli-plugin-e2e-cypress

1 file changed

+12
-2
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
constpath=require('path')
2+
13
module.exports=(api,options)=>{
24
const{ info, chalk, execa, resolveModule}=require('@vue/cli-shared-utils')
35

@@ -32,8 +34,16 @@ module.exports = (api, options) => {
3234
]
3335

3436
// Use loadModule to allow users to customize their Cypress dependency version.
35-
constcypressBinPath=resolveModule('cypress/bin/cypress',api.getCwd())||
36-
resolveModule('cypress/bin/cypress',__dirname)
37+
constcypressPackageJsonPath=
38+
resolveModule('cypress/package.json',api.getCwd())||
39+
resolveModule('cypress/package.json',__dirname)
40+
constcypressPkg=require(cypressPackageJsonPath)
41+
constcypressBinPath=path.resolve(
42+
cypressPackageJsonPath,
43+
'../',
44+
cypressPkg.bin.cypress
45+
)
46+
3747
construnner=execa(cypressBinPath,cyArgs,{stdio:'inherit'})
3848
if(server){
3949
runner.on('exit',()=>server.close())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp