Files
sanderling/test/browser/testdata/no-properties/spec.ts
T
pj 7bafed8af4 feat(testrun): refuse a run against a spec that registers no properties
A spec with no properties drove the app and reported no violations,
which is indistinguishable from a spec that judged something and found
nothing. Execute now aborts after loading the spec unless the run asks
for the opt-out by name.
2026-08-17 23:27:21 +05:30

11 lines
266 B
TypeScript

import { extract, taps } from "@sanderling/spec";
export const counter = extract((s) => {
const el = s.ax.find({ id: "counter" });
return el ? parseInt(el.text, 10) || 0 : 0;
}).named("counter");
export const properties = {};
export const actionsRoot = taps;