Build checked asynchronous service registries with Nix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user