We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18f8da3 commit c786c6bCopy full SHA for c786c6b
tests/integration/tools/tools.test.ts
@@ -0,0 +1,18 @@
1
+import { describe, expect, it } from "vitest";
2
+import { AllTools, ToolBase } from "../../../src/tools/index.js";
3
+
4
+describe("all exported tools", () => {
5
+ it("'AllTools' should be a list of ToolBase implementations", () => {
6
+ expect(AllTools).toBeInstanceOf(Array);
7
+ AllTools.forEach((toolCtor) => {
8
+ expect(Object.prototype.isPrototypeOf.call(ToolBase, toolCtor)).toBe(true);
9
+ });
10
11
12
+ it("each tool in 'AllTools' list should have required static properties for ToolClass conformance", () => {
13
14
+ expect(toolCtor).toHaveProperty("category");
15
+ expect(toolCtor).toHaveProperty("operationType");
16
17
18
+});
0 commit comments