Make local graph execution optional across composed packages
This commit is contained in:
@@ -5,7 +5,7 @@ import { formatQx } from "../src/capability-language/source.js";
|
||||
import { compileExecutionPlan, compileKernelProgram } from "../src/execution-world/index.js";
|
||||
const contract = `interface Item id "item" revision "item@1" {
|
||||
operation remove id "remove" : unit -> unit {
|
||||
call id "remove:call" execution transaction targets [server];
|
||||
call id "remove:call" execution transaction;
|
||||
}
|
||||
}`;
|
||||
const workspace = `workspace Lifecycle id "workspace:lifecycle" revision "workspace:lifecycle@1" commit "${"a".repeat(40)}" {
|
||||
@@ -45,10 +45,9 @@ test("lifecycle binding and endpoint policies survive formatting and kernel comp
|
||||
});
|
||||
test("deletion rejects browser, snapshot, remote, class, payload and unknown primitive promises", () => {
|
||||
for (const [iface, ws] of [
|
||||
[contract.replace("targets [server]", "targets [browser, server]"), workspace],
|
||||
[contract.replace("transaction targets", "snapshot targets"), workspace],
|
||||
[contract.replace("execution transaction targets [server]", "execution remote"), workspace],
|
||||
[contract.replace("execution transaction targets [server]", ""), workspace],
|
||||
[contract.replace("execution transaction", "execution snapshot"), workspace],
|
||||
[contract.replace("execution transaction", "execution remote"), workspace],
|
||||
[contract.replace("execution transaction", ""), workspace],
|
||||
[contract.replace("operation remove", "static operation remove"), workspace],
|
||||
[contract.replace("unit -> unit", "string -> unit"), workspace],
|
||||
[contract.replace("unit -> unit", "unit -> string"), workspace],
|
||||
|
||||
Reference in New Issue
Block a user