Skip to main content
Glama
index.ts796 B
import { vi } from "vitest"; import { createTestingPinia } from "@pinia/testing"; import { piniaHooksPlugin } from "@si/vue-lib/pinia"; import { VueQueryPlugin } from "@tanstack/vue-query"; import FloatingVue from "floating-vue"; import router from "@/router"; export const plugins = [ FloatingVue, VueQueryPlugin, router, createTestingPinia({ plugins: [piniaHooksPlugin], createSpy: vi.fn, initialState: { featureFlagStore: { DEFAULT_SUBS: true, }, }, }), ]; // handles any window.location code Object.defineProperty(window, "location", { writable: true, value: { ...window.location, // Keep existing properties if needed assign: vi.fn(), replace: vi.fn(), href: "http://localhost/", // Set a default href for testing }, });

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/systeminit/si'

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