test(core): isolate project adoption fixture (#46009)

This commit is contained in:
Kit Langton
2026-08-28 16:18:36 -04:00
committed by GitHub
Unverified
parent aea3e7c1d2
commit 964245bc2a
+12 -1
View File
@@ -67,6 +67,17 @@ const liveIt = testEffect(
],
),
)
const projectIt = testEffect(
AppNodeBuilder.build(
LayerNode.group([Database.node, Bus.node, Project.node, SessionProjector.node, SessionStore.node, Session.node]),
[
[Bus.node, Bus.configured({ persist: true })],
// Project adoption needs plain-prompt admission, not live plugin/provider startup.
[LocationServiceMap.node, promptLocationLayer],
[SessionExecution.node, SessionExecution.noopLayer],
],
),
)
const location = Location.Ref.make({ directory: AbsolutePath.make("/project") })
const id = Session.ID.create()
@@ -119,7 +130,7 @@ describe("Session.create", () => {
),
)
liveIt.live("follows the directory's project identity established after creation", () =>
projectIt.live("follows the directory's project identity established after creation", () =>
withTmp((directory) =>
Effect.gen(function* () {
const session = yield* Session.Service