(fixturePath: string)
| 107 | } |
| 108 | |
| 109 | function loadFixtures(fixturePath: string): Fixture[] { |
| 110 | try { |
| 111 | const stat = statSync(fixturePath); |
| 112 | if (stat.isDirectory()) { |
| 113 | return loadFixturesFromDir(fixturePath); |
| 114 | } |
| 115 | return loadFixtureFile(fixturePath); |
| 116 | } catch (err) { |
| 117 | console.warn( |
| 118 | `[aimock] Failed to load fixtures from ${fixturePath}: ${err instanceof Error ? err.message : String(err)}`, |
| 119 | ); |
| 120 | return []; |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | export { LLMock } from "./llmock.js"; |
| 125 | export type { MockServerOptions, Fixture } from "./types.js"; |
no test coverage detected
searching dependent graphs…