You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
analyticsLoggingService.logData({message: `analytics-broker-process sent ${DetachedProcessMessages.ProcessFinishedTasks} message and will exit gracefully now`});
82
+
killCurrentProcessGracefully();
83
+
});
84
+
}
85
+
86
+
return;
87
+
}
88
+
71
89
awaitsendDataForTracking(data);
72
90
});
73
91
74
92
process.on("disconnect",async()=>{
75
93
analyticsLoggingService.logData({message: "analytics-broker-process received process.disconnect event"});
76
94
awaitfinishTracking();
95
+
killCurrentProcessGracefully();
77
96
});
78
97
79
98
analyticsLoggingService.logData({message: `analytics-broker-process will send ${DetachedProcessMessages.ProcessReadyToReceive} message`});
assert.deepEqual(optionsPassedToSpawn,[{stdio: "inherit"}],"The stdio must be inherit as this way CLI's command can determine correctly if terminal is in interactive mode.");
assert.deepEqual(argsPassedToSpawn,[expectedPathToCliExecutable,"dev-preuninstall","--analyticsLogFile","value from env analyticsLog.txt"]);
74
+
assert.deepEqual(optionsPassedToSpawn,[{stdio: "inherit"}],"The stdio must be inherit as this way CLI's command can determine correctly if terminal is in interactive mode.");
75
+
assert.deepEqual(dataPassedToConsoleError,[]);
76
+
});
77
+
61
78
it("ensure package.json has correct preuninstall script",()=>{
0 commit comments