# Refactor: Move Provider Tests to provider-inference
## Summary
Move azure-openai and openrouter-ai provider tests from `stage-ui` to
`provider-inference` package, placing them closer to their
implementations.
## Changes
- **Moved test files**:
-
`packages/stage-ui/src/libs/providers/providers/azure-openai/index.test.ts`
→
`packages/provider-inference/src/providers/cloud/azure-openai/index.test.ts`
-
`packages/stage-ui/src/libs/providers/providers/openrouter-ai/index.test.ts`
→
`packages/provider-inference/src/providers/cloud/openrouter-ai/index.test.ts`
- **Simplified test imports**: Updated tests to use direct provider
definitions instead of `getDefinedProvider()`, removing unnecessary
lookup logic
- **Added dependency**: `@proj-airi/core-agent` as devDependency for
test utilities
## Benefits
1. Tests are co-located with their implementations
2. Direct imports are simpler and more maintainable
3. Better package organization following module boundaries
## Verification
```bash
# Run tests for provider-inference
pnpm -F @proj-airi/provider-inference exec vitest run
# Typecheck
pnpm -F @proj-airi/provider-inference typecheck
```
## Test Results
All tests pass after the refactoring.