MCP Server Example with PRPs
This commit is contained in:
20
use-cases/mcp-server/tests/setup.ts
Normal file
20
use-cases/mcp-server/tests/setup.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { beforeEach, vi } from 'vitest'
|
||||
|
||||
// Mock crypto API for Node.js environment
|
||||
Object.defineProperty(global, 'crypto', {
|
||||
value: {
|
||||
subtle: {
|
||||
sign: vi.fn(),
|
||||
verify: vi.fn(),
|
||||
importKey: vi.fn(),
|
||||
},
|
||||
getRandomValues: vi.fn(),
|
||||
},
|
||||
})
|
||||
|
||||
// Mock fetch globally
|
||||
global.fetch = vi.fn()
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks()
|
||||
})
|
||||
Reference in New Issue
Block a user