mirror of
https://github.com/aaronsb/obsidian-mcp-plugin.git
synced 2026-07-22 06:45:14 +00:00
fix: Mock fs module in tests to prevent certificate directory creation (v0.9.0a)
This commit is contained in:
parent
404bda1397
commit
7d196cd39b
2 changed files with 9 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-mcp-plugin",
|
||||
"version": "0.9.0",
|
||||
"version": "0.9.0a",
|
||||
"description": "Semantic MCP server plugin providing AI tools with direct Obsidian vault access via HTTP transport",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
import { MCPHttpServer } from '../src/mcp-server';
|
||||
import { App } from 'obsidian';
|
||||
|
||||
// Mock the fs module to prevent file system operations in tests
|
||||
jest.mock('fs', () => ({
|
||||
existsSync: jest.fn(() => false),
|
||||
mkdirSync: jest.fn(),
|
||||
readFileSync: jest.fn(),
|
||||
writeFileSync: jest.fn()
|
||||
}));
|
||||
|
||||
describe('MCPHttpServer', () => {
|
||||
let mockApp: App;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue