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

Function test

scripts/rest-api-diff.test.ts:15–22  ·  view source on GitHub ↗
(name: string, fn: () => void)

Source from the content-addressed store, hash-verified

13const failures: string[] = [];
14
15function test(name: string, fn: () => void): void {
16 try {
17 fn();
18 passed += 1;
19 } catch (err) {
20 failures.push(`${name}: ${err instanceof Error ? err.message : String(err)}`);
21 }
22}
23
24const item = (over: Partial<OasdiffItem> = {}): OasdiffItem => ({
25 id: 'api-removed-without-deprecation',

Callers 1

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected