Implement checked aggregation plans, native SQL, and bounded RPC capture
This commit is contained in:
@@ -17,4 +17,13 @@ test("query fixture links generic collections, both implementations, and native
|
||||
assert.equal(title.kind, "value");
|
||||
delete title.queryRead;
|
||||
assert.throws(() => linkQueries(broken), /changed/);
|
||||
const aggregateBroken = structuredClone(workspace);
|
||||
const rank = aggregateBroken.interfaceImports
|
||||
.find((i) => i.displayName === "TaskFacts")!
|
||||
.members.find((m) => m.id === "rank")!;
|
||||
assert.equal(rank.kind, "value");
|
||||
delete rank.queryRead;
|
||||
assert.throws(() => linkQueries(aggregateBroken), /changed/);
|
||||
const totals = workspace.linkedQueries.find((q) => q.id.endsWith(":totals"))!;
|
||||
assert.equal(totals.fields.filter((f) => f.memberId === "rank").length, 2);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user