Fixed TypeScript and ESLint errors properly without any or ignores

This commit is contained in:
mkorwel
2026-04-17 16:00:16 +00:00
parent 18369c0366
commit a1d4604131
17 changed files with 143 additions and 72 deletions
+3 -2
View File
@@ -49,8 +49,9 @@ describe('telemetry_gcp.js', () => {
await import('../telemetry_gcp.js');
expect(mockSpawn).toHaveBeenCalled();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const spawnOptions = (mockSpawn.mock.calls[0] as any[])[2];
const spawnOptions = (
mockSpawn.mock.calls[0] as { env?: Record<string, string> }[]
)[2];
expect(spawnOptions?.env).not.toHaveProperty(
'GOOGLE_APPLICATION_CREDENTIALS',
);