We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d0f1ee commit 443bcc1Copy full SHA for 443bcc1
1 file changed
plugin.js
@@ -19,7 +19,9 @@ let usersCypress, env, host, webUrl, cdnUrl, debugFolderPath;
19
const sessionId = uuidv4();
20
21
try {
22
- const packageFile = fs.readFileSync(path.resolve(path.dirname(require.resolve('cypress', {paths: [cwd]})), 'package.json'));
+ let file = path.dirname(require.resolve('cypress', {paths: [cwd]}))
23
+ if (file.endsWith("dist")) file = path.resolve(file, '..'); // in cypress 15+ resolve paths to dist folder
24
+ packageFile = fs.readFileSync(path.resolve(file, 'package.json'));
25
usersCypress = JSON.parse(packageFile.toString());
26
if (!usersCypress.version) {
27
usersCypress.version = "10.0.0.failure";
0 commit comments