添加pdf读取mcp项目

This commit is contained in:
zqm
2025-10-22 16:18:21 +08:00
parent 2401eb5f97
commit 0d8520123e
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
// Vitest configuration options go here
globals: true, // Optional: Use Vitest globals like describe, it, expect
environment: 'node', // Specify the test environment
coverage: {
provider: 'v8', // or 'istanbul'
reporter: ['text', 'json', 'html', 'lcov'], // Add lcov for badges/external tools
reportsDirectory: './coverage',
include: ['src/**/*.ts'], // Only include files in src
exclude: [
// Exclude index/types or other non-testable files if needed
'src/index.ts',
'src/handlers/index.ts', // Usually just exports
'**/*.d.ts',
],
thresholds: {
// Enforce 100% coverage
lines: 92, // Lowered threshold
functions: 100, // Keep functions at 100 as it was met
branches: 80, // Lowered threshold
statements: 92, // Lowered threshold
},
},
},
});