Skip to content

Commit 535ae6b

Browse files
Copiloteleanorjboyd
andcommitted
Fix linting errors: replace 'any' with proper PackageManagementOptions type
Replace `{} as any` with `{ install: [] }` to satisfy PackageManagementOptions union type requirements and fix eslint @typescript-eslint/no-explicit-any errors. Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
1 parent 3ea915e commit 535ae6b

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

package-lock.json

Lines changed: 2 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/managers/conda/condaPackageManager.unit.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ suite('CondaPackageManager Unit Tests', () => {
229229
getCommonCondaPackagesToInstallStub.resolves({ install: ['pytest'], uninstall: [] });
230230
managePackagesStub.resolves(packages);
231231

232-
// Run - Execute manage without packages
233-
await packageManager.manage(env, {} as any);
232+
// Run - Execute manage without packages (empty install array triggers prompt)
233+
await packageManager.manage(env, { install: [] });
234234

235235
// Assert - Verify user was prompted
236236
assert.ok(getCommonCondaPackagesToInstallStub.called, 'Should prompt user for packages');
@@ -249,8 +249,8 @@ suite('CondaPackageManager Unit Tests', () => {
249249
return await callback({} as Progress<{ message?: string }>, {} as CancellationToken);
250250
});
251251

252-
// Run - Execute manage without packages (user cancels)
253-
await packageManager.manage(env, {} as any);
252+
// Run - Execute manage without packages (user cancels, empty install array triggers prompt)
253+
await packageManager.manage(env, { install: [] });
254254

255255
// Assert - Verify operation was cancelled
256256
assert.ok(getCommonCondaPackagesToInstallStub.called, 'Should prompt user');

0 commit comments

Comments
 (0)