MCPcopy Create free account
hub / github.com/lightdash/lightdash / test

Function test

scripts/mcp-tools-diff.test.ts:14–21  ·  view source on GitHub ↗
(name: string, fn: () => void)

Source from the content-addressed store, hash-verified

12const failures: string[] = [];
13
14function test(name: string, fn: () => void): void {
15 try {
16 fn();
17 passed += 1;
18 } catch (err) {
19 failures.push(`${name}: ${err instanceof Error ? err.message : String(err)}`);
20 }
21}
22
23const snap = (tools: SnapshotTool[]): ToolsSnapshot => ({ schemaVersion: '1', tools });
24const tool = (name: string, props: Record<string, string> = {}, required: string[] = []): SnapshotTool => ({

Callers 1

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected