Skip to content
TypeScript

test(scripts): identify the Windows native probe by executable (#21774)

Utkarsh Patil44d91c5484da
diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.ts
index 165ca80cb30..aa04d9bfbf1 100644
--- a/scripts/build-desktop-artifact.test.ts
+++ b/scripts/build-desktop-artifact.test.ts
@@ -1150,7 +1150,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(