Files
opsxshell/vitest.config.ts
Logan.LiandCursor 08696896f9 feat: harden local shell, SFTP, and desktop session reliability
Finder-launched terminals now inherit a login PATH so tools like ollama resolve, destructive SFTP/editor actions require confirmation, and terminal search plus window dragging work again. SSH forwards and RDP sessions keep listeners and survive reconnect without FastPath crashes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 16:08:11 +08:00

50 lines
983 B
TypeScript

/**
* Vitest Configuration - 测试框架配置
*/
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [
react(),
{
name: 'tauri-renderer-test',
// Native desktop commands are provided by test/setup.ts.
}
],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./test/setup.ts'],
include: [
'test/**/*.{test,spec}.{ts,tsx}',
],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'test/setup.ts',
'**/*.d.ts'
],
thresholds: {
global: {
branches: 50,
functions: 50,
lines: 50,
statements: 50
}
}
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@shared': path.resolve(__dirname, './shared')
}
}
})