(serverPath: ServerPath, run: (input: LlmProjectFixture) => Effect.Effect<A, E, TestScope>)
| 249 | } |
| 250 | |
| 251 | function withFakeLlm<A, E>(serverPath: ServerPath, run: (input: LlmProjectFixture) => Effect.Effect<A, E, TestScope>) { |
| 252 | return Effect.gen(function* () { |
| 253 | const llm = yield* TestLLMServer |
| 254 | return yield* withProject(serverPath, { config: testProviderConfig(llm.url) }, (input) => run({ ...input, llm })) |
| 255 | }).pipe(Effect.provide(TestLLMServer.layer)) |
| 256 | } |
| 257 | |
| 258 | function withFakeLlmProject<A, E>( |
| 259 | serverPath: ServerPath, |
no test coverage detected