diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.ts index a4cef9ba03b8..e357f6216c0a 100644 --- a/scripts/build-desktop-artifact.test.ts +++ b/scripts/build-desktop-artifact.test.ts @@ -1149,7 +1149,10 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => { }); assert.isFalse( - commands.some((command) => command.options.env?.ELECTRON_RUN_AS_NODE === "1"), + commands.some( + (command) => + command.command === NodePath.join(fixture.packagedAppDir, fixture.appExecutableName), + ), ); assert.isTrue( commands.some(