Build checked asynchronous service registries with Nix

This commit is contained in:
Timothy J. Aveni
2026-09-20 21:06:45 -07:00
parent c4ae58831d
commit 1dadc642d1
5 changed files with 50 additions and 4 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import {
type PackageArtifacts,
type ArtifactImplementation,
} from "../src/execution-world/index.js";
export const buildArtifactFixture = (plan: ExecutionPlan) => {
const expected = plan.definition.packages[0]!;
export const buildArtifactFixture = (plan: ExecutionPlan, revision = plan.definition.packages[0]!.revision) => {
const expected = plan.definition.packages.find((pkg) => pkg.revision === revision)!;
const bytes = new TextEncoder().encode("export const handlers = Object.freeze({});\n");
const implementation = (
id: string,