-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
APIx DevTools
Summary
Improve the integration tests by replacing the current "snapshot and restore" workaround for userConfig with formal dependency injection.
Current Situation
In createDeployment.test.ts, the test for voyageApiKey currently relies on mutating the global userConfig. Because describeWithAtlasLocal doesn't natively support config injection, we are using a beforeEach/afterEach to snapshot and restore the userConfig state. This prevents this specific test from unintentionally affecting other tests in the future.
Goal
- Support explicit dependency injection for userConfig.
- Allow mock configurations to be passed directly into the mock server.
- Remove the need for manual state management (snapshot/restore) in individual test files.
Context