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
In case the environment variable `NS_CLI_PREUNINSTALL_ANALYTICS_LOG_FILE` is set and `npm un -g nativescript` or `npm i -g nativescript` is executed, CLI will use the value of the variable as path for the analyticsLogFile. This way it will be easy to check what information is tracked during install/uninstall of the CLI.
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