File tree 1 file changed +4
-2
lines changed
packages/@vue/cli-plugin-e2e-cypress
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = ( api , options ) => {
2
- const { info, chalk, execa } = require ( '@vue/cli-shared-utils' )
2
+ const { info, chalk, execa, resolveModule } = require ( '@vue/cli-shared-utils' )
3
3
4
4
api . registerCommand ( 'test:e2e' , {
5
5
description : 'run e2e tests with Cypress' ,
@@ -31,7 +31,9 @@ module.exports = (api, options) => {
31
31
...rawArgs
32
32
]
33
33
34
- const cypressBinPath = require . resolve ( 'cypress/bin/cypress' )
34
+ // Use loadModule to allow users to customize their Cypress dependency version.
35
+ const cypressBinPath = resolveModule ( 'cypress/bin/cypress' , api . getCwd ( ) ) ||
36
+ resolveModule ( 'cypress/bin/cypress' , __dirname )
35
37
const runner = execa ( cypressBinPath , cyArgs , { stdio : 'inherit' } )
36
38
if ( server ) {
37
39
runner . on ( 'exit' , ( ) => server . close ( ) )
You can’t perform that action at this time.
0 commit comments