Skip to main content
Glama
framework-validation.test.ts1.08 kB
/** * Framework Validation Test * * This test verifies that the test framework is properly configured and working. * It tests basic functionality to ensure the setup is correct. */ import { describe, expect, it } from "vitest"; describe("Test Framework Validation", () => { it("should run basic assertions", () => { expect(true).toBe(true); expect(1 + 1).toBe(2); expect("test").toBe("test"); }); it("should handle async operations", async () => { const result = await Promise.resolve(42); expect(result).toBe(42); }); it("should support array assertions", () => { const arr = [1, 2, 3]; expect(arr).toHaveLength(3); expect(arr).toContain(2); }); it("should support object assertions", () => { const obj = { name: "test", value: 123 }; expect(obj).toHaveProperty("name"); expect(obj.name).toBe("test"); expect(obj).toEqual({ name: "test", value: 123 }); }); it("should handle errors correctly", () => { expect(() => { throw new Error("Test error"); }).toThrow("Test error"); }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/keyurgolani/ThoughtMcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server