cherry-studio/packages/aiCore/vitest.config.ts
MyPrototypeWhat 5d0ab0a9a1 feat(aiCore): update vitest version and enhance provider validation
- Upgraded `vitest` dependency to version 3.2.4 in package.json and yarn.lock for improved testing capabilities.
- Removed console error logging in provider validation functions to streamline error handling.
- Added comprehensive tests for the AiProviderRegistry functionality, ensuring robust provider management and dynamic registration.
- Introduced new test cases for provider schemas to validate configurations and IDs.
- Deleted outdated registry test file to maintain a clean test suite.
2025-08-19 11:13:03 +08:00

16 lines
206 B
TypeScript

import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true
},
resolve: {
alias: {
'@': './src'
}
},
esbuild: {
target: 'node18'
}
})