Allow telemetry exporters to GCP to utilize user's login credentials, if requested (#13778)

This commit is contained in:
Marat Boshernitsan
2025-12-02 21:27:37 -08:00
committed by GitHub
parent 92e95ed806
commit b9b3b8050d
26 changed files with 994 additions and 428 deletions

View File

@@ -16,6 +16,10 @@ const mocks = vi.hoisted(() => ({
copyFile: vi.fn(),
homedir: vi.fn(),
platform: vi.fn(),
writeStream: {
write: vi.fn(),
on: vi.fn(),
},
}));
vi.mock('node:child_process', () => ({
@@ -24,6 +28,7 @@ vi.mock('node:child_process', () => ({
}));
vi.mock('node:fs', () => ({
createWriteStream: () => mocks.writeStream,
promises: {
mkdir: mocks.mkdir,
readFile: mocks.readFile,