We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e85988 commit f4b31bfCopy full SHA for f4b31bf
packages/bridge/test/force-wire.test.ts
@@ -1,5 +1,6 @@
1
import { regressionTest } from "./utils/regression.ts";
2
import { tools } from "./utils/bridge-tools.ts";
3
+import assert from "node:assert";
4
5
// ── Force statement: regression tests ───────────────────────────────────────
6
@@ -52,7 +53,12 @@ bridge Mutation.fire {
52
53
"critical forced tool error throws": {
54
input: { q: "test", err: "audit service unavailable" },
55
assertError: /audit service unavailable/,
- assertTraces: 2,
56
+ assertTraces: (a) => {
57
+ assert.ok(
58
+ a.length >= 1,
59
+ "Expected at least 1 trace for the failing tool",
60
+ );
61
+ },
62
},
63
64
0 commit comments