Skip to main content
Glama
ConfigGuidanceSnapshotTests.swift969 B
import Foundation import Testing @testable import PeekabooCLI @testable import Tachikoma @Suite("Config guidance snapshots") struct ConfigGuidanceSnapshotTests { @Test("init guidance matches snapshot") func initGuidanceMatchesSnapshot() throws { // Replace placeholder with deterministic path for comparison let rendered = TKConfigMessages.initGuidance .map { $0.replacingOccurrences(of: "{path}", with: "/tmp/config.json") } .joined(separator: "\n") guard let snapshotURL = Bundle.module.url( forResource: "config_init", withExtension: "txt" ) else { Issue.record("Snapshot file config_init.txt not found in test bundle") return } let snapshot = try String(contentsOf: snapshotURL) .trimmingCharacters(in: .whitespacesAndNewlines) #expect(rendered.trimmingCharacters(in: .whitespacesAndNewlines) == snapshot) } }

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/steipete/Peekaboo'

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