mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 04:54:05 +02:00
- Replace Jest dependencies with Vitest and @vitest/coverage-v8 - Update test scripts to use 'vitest run --coverage' - Create vitest.config.ts for both servers with node environment and coverage settings - Update all test files: - Change imports from '@jest/globals' to 'vitest' - Replace jest.mock() with vi.mock() - Replace jest.fn() with vi.fn() - Update mock clearing/restoring to use vi methods - Remove jest.config.cjs files - All 151 tests passing (24 in sequentialthinking, 127 in filesystem) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
307 B
TypeScript
15 lines
307 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['**/__tests__/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: ['**/*.ts'],
|
|
exclude: ['**/__tests__/**', '**/dist/**'],
|
|
},
|
|
},
|
|
});
|