Make local graph execution optional across composed packages
This commit is contained in:
@@ -24,7 +24,7 @@ test("compound captured changes survive planning, transport lowering and typed e
|
||||
]);
|
||||
assert.deepEqual(paths.find((op) => op.operation === "compound:content:edit")!.inputChanges, [[]]);
|
||||
const code = generatePortableTypeScriptBindings(plan.definition.bindingSchema, "compound:runtime@1", {
|
||||
target: "browser",
|
||||
target: "target:org.quixos.execution.javascript@1",
|
||||
});
|
||||
assert.ok(code.includes("PreparedChange<"));
|
||||
assert.ok(code.includes('"edit"'));
|
||||
@@ -33,8 +33,9 @@ test("compound captured changes survive planning, transport lowering and typed e
|
||||
test("prepared changes require one storable materialized type", () => {
|
||||
for (const shape of ["change<string, bool>", "change<atom N>", "change<atom-ref<N>>", "change<change<string>>"]) {
|
||||
const result = compileCapabilityResourceSource(
|
||||
`external atom N id "n"; package P id "p" revision "p@1" {
|
||||
function f id "f" : ${shape} -> unit execution transaction targets [browser, server];
|
||||
`symbol JavaScript id "target:org.quixos.execution.javascript@1";
|
||||
external atom N id "n"; package P id "p" revision "p@1" {
|
||||
function f id "f" : ${shape} -> unit execution transaction targets [JavaScript, server];
|
||||
}`,
|
||||
{ source },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user