igniteui-cli
igniteui-cli copied to clipboard
GoogleAnalitics
Description
There is a Test CI Error, caused because of a different environment, wher the .npm path does not match the one expected by google analytics:
protected static userDataFolder: string = process.env.APPDATA || (process.platform === "darwin" ? "/Users/Shared" : process.env.HOME + "/.npm/");
CI Environment:
- Ubuntu 20.04.2
Comment the GoogleAnalitics spy:
describe("component", () => {
beforeAll(() => {
spyOn(GoogleAnalytics, "post");
});
Result
Test Component Works fail, because of a different .npm path
Test: component works
- Uncaught exception: Error: ENOENT: no such file or directory, mkdir '/home/runner/.npm/igniteui-cli'
Expected result
No errors because of the different environment and npm path
Attachments

Ref: https://github.com/IgniteUI/igniteui-cli/runs/2464419514?check_suite_focus=true