feat(plugin): add namespaced hook API (#33416)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { describe, expect } from "bun:test"
|
||||
import { Effect, Layer } from "effect"
|
||||
import { AbsolutePath } from "@opencode-ai/core/schema"
|
||||
import { PluginBoot } from "@opencode-ai/core/plugin/boot"
|
||||
import { Reference } from "@opencode-ai/core/reference"
|
||||
import { ReferenceGuidance } from "@opencode-ai/core/reference/guidance"
|
||||
import { SystemContext } from "@opencode-ai/core/system-context/index"
|
||||
@@ -36,7 +35,6 @@ describe("ReferenceGuidance", () => {
|
||||
]),
|
||||
}),
|
||||
),
|
||||
Effect.provide(Layer.mock(PluginBoot.Service, { wait: () => Effect.void })),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -48,7 +46,6 @@ describe("ReferenceGuidance", () => {
|
||||
}).pipe(
|
||||
Effect.provide(ReferenceGuidance.layer),
|
||||
Effect.provide(Layer.mock(Reference.Service, { list: () => Effect.succeed([]) })),
|
||||
Effect.provide(Layer.mock(PluginBoot.Service, { wait: () => Effect.void })),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -71,7 +68,6 @@ describe("ReferenceGuidance", () => {
|
||||
]),
|
||||
}),
|
||||
),
|
||||
Effect.provide(Layer.mock(PluginBoot.Service, { wait: () => Effect.void })),
|
||||
),
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user