mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-03 02:59:07 +08:00
- Introduced a new Zod-based schema for provider validation, improving type safety and consistency. - Added support for dynamic provider IDs and enhanced the provider registration process. - Updated the AiProviderRegistry to utilize the new validation functions, ensuring robust provider management. - Added tests for the provider registry to validate dynamic imports and functionality. - Updated yarn.lock to reflect the latest dependency versions.
19 lines
363 B
TypeScript
19 lines
363 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
setupFiles: ['./setupVitest.ts'],
|
|
include: ['src/**/*.{test,spec}.{ts,tsx}', 'src/**/__tests__/**/*.{test,spec}.{ts,tsx}']
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': './src'
|
|
}
|
|
},
|
|
esbuild: {
|
|
target: 'node18'
|
|
}
|
|
})
|