mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 05:11:24 +08:00
- 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.
16 lines
206 B
TypeScript
16 lines
206 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': './src'
|
|
}
|
|
},
|
|
esbuild: {
|
|
target: 'node18'
|
|
}
|
|
})
|