Removes the system-action skills that were only ever available in the now -retired Basic/Assistant modes (play_music, open/close_app, open_notepad, create_document, create_powerpoint, control_volume, control_media_playback, take_screenshot, clipboard, search_file, set_reminder, lock_screen, empty_recycle_bin, show_notification, print_file, create_folder, create_file, delete_file, fill_browser_field) along with their windows/lib helpers (appRegistry, fileSearch, locations, sendVirtualKey) and the fillField browser-window helper. Keeps the read-only, side-effect -free transversal skills (search_web, navigate_browser and friends, check_system_memory/storage/battery/internet). Drops the now-unused docx/pptxgenjs dependencies and the stale coachStore/meetingStore entries from the coverage exclude list. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./tests/setup.ts'],
|
|
// tests/e2e est exclusivement pilote par Playwright (test:e2e), jamais par Vitest.
|
|
exclude: ['**/node_modules/**', 'tests/e2e/**'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'lcov', 'html'],
|
|
thresholds: {
|
|
lines: 80,
|
|
functions: 80,
|
|
branches: 75,
|
|
statements: 80
|
|
},
|
|
include: ['src/**/*.{ts,tsx}'],
|
|
exclude: [
|
|
'node_modules',
|
|
'tests',
|
|
'*.config.*',
|
|
'src/main/index.ts',
|
|
'src/preload/**',
|
|
'src/renderer/src/main.tsx',
|
|
'**/*.d.ts',
|
|
// node:sqlite (built-in Node >= 22.5) ne peut pas etre transforme par Rolldown pour le
|
|
// calcul de couverture des fichiers non importes (environnement "client", qui ne bundle
|
|
// pas les built-ins Node) : echoue sur Linux (CI) bien que fonctionnel sous Windows. Le
|
|
// fichier reste neanmoins teste reellement (tests/unit/skills.memory.test.ts) ; seul son
|
|
// pourcentage de couverture global n'est plus comptabilise.
|
|
'src/main/memory/store.ts'
|
|
]
|
|
}
|
|
}
|
|
})
|