test(core): make test sentinels effective (#45706)

This commit is contained in:
Kit Langton 2026-08-27 22:29:59 -04:00 committed by GitHub
parent 8ab08f7fc9
commit 35d681afab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -162,7 +162,6 @@ test("Core reuses the canonical shared schemas", async () => {
]
for (const [core, shared] of schemas) expect(core).toBe(shared)
expect(Agent.Info.default(Agent.ID.make("test"))).toEqual(Agent.Info.default(Agent.ID.make("test")))
expect(coreModel.Info.default(coreProvider.ID.make("test"), coreModel.ID.make("model"))).toEqual(
Model.Info.default(Provider.ID.make("test"), Model.ID.make("model")),
)

View file

@ -45,7 +45,9 @@ describe("Skill", () => {
value.description = "Updated"
value.id = Skill.ID.make("ignored")
})
draft.update("missing", () => Effect.die("unreachable"))
draft.update("missing", () => {
throw new Error("unreachable")
})
draft.add(info("deploy", "Deploy"))
draft.remove("deploy")
})