MCPcopy Create free account
hub / github.com/ReAPI-com/mcp-openapi / createTestConfig

Function createTestConfig

src/core/__tests__/SpecPersister.test.ts:17–25  ·  view source on GitHub ↗
(basePath: string)

Source from the content-addressed store, hash-verified

15 let service: FileSystemSpecService;
16
17 const createTestConfig = (basePath: string): SpecServiceConfig => ({
18 basePath,
19 catalogDir: '_catalog',
20 dereferencedDir: '_dereferenced',
21 cache: {
22 maxSize: 100,
23 ttl: 1000 * 60 * 5 // 5 minutes for tests
24 }
25 });
26
27 beforeEach(async () => {
28 // Clean up and create test directories

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected