igniteui-cli icon indicating copy to clipboard operation
igniteui-cli copied to clipboard

GoogleAnalitics

Open IvayloG opened this issue 4 years ago • 0 comments

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

image

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

IvayloG avatar May 17 '21 13:05 IvayloG