Skip to content

Commit df78468

Browse files
committed
fix(electron): update default value in package reading logic
- Modified the default return value of the `readPackageUp` function to include an empty path, ensuring compatibility with the updated type definitions and improving the handling of package data retrieval.
1 parent 6e50673 commit df78468

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/electron-service/src/launcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default class ElectronLaunchService implements Services.ServiceInstance {
121121
const caps = capsList.flatMap((cap) => getElectronCapabilities(cap) as WebdriverIO.Capabilities);
122122
const pkg =
123123
(await readPackageUp({ cwd: this.#projectRoot })) ||
124-
({ packageJson: { dependencies: {}, devDependencies: {} } } as NormalizedReadResult);
124+
({ packageJson: { dependencies: {}, devDependencies: {} }, path: '' } as NormalizedReadResult);
125125

126126
if (!caps.length) {
127127
const noElectronCapabilityError = new Error('No Electron browser found in capabilities');

0 commit comments

Comments
 (0)