test(core): add config and watcher test services (#39157)
This commit is contained in:
parent
f5700808c5
commit
713658c07b
20 changed files with 468 additions and 498 deletions
|
|
@ -356,24 +356,17 @@ const referenceInstructions = Layer.mock(ReferenceInstructions.Service, {
|
|||
load: () => Effect.succeed(Instructions.empty),
|
||||
})
|
||||
const mcpInstructions = Layer.mock(McpInstructions.Service, { load: () => Effect.succeed(Instructions.empty) })
|
||||
const config = Layer.succeed(
|
||||
Config.Service,
|
||||
Config.Service.of({
|
||||
changes: () => Stream.empty,
|
||||
entries: () =>
|
||||
Effect.succeed([
|
||||
new Config.Document({
|
||||
type: "document",
|
||||
info: new Config.Info({
|
||||
compaction: new ConfigCompaction.Info({
|
||||
buffer: 3_000,
|
||||
keep: new ConfigCompaction.Keep({ tokens: 1_000 }),
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
]),
|
||||
const config = Config.testLayer([
|
||||
new Config.Document({
|
||||
type: "document",
|
||||
info: new Config.Info({
|
||||
compaction: new ConfigCompaction.Info({
|
||||
buffer: 3_000,
|
||||
keep: new ConfigCompaction.Keep({ tokens: 1_000 }),
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
)
|
||||
])
|
||||
let pluginFlushHook = Effect.void
|
||||
const pluginSupervisor = Layer.succeed(
|
||||
PluginSupervisor.Service,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue