MCPcopy Create free account
hub / github.com/cortexkit/magic-context / check

Function check

packages/plugin/scripts/smoke-smartnote-wasm.ts:24–31  ·  view source on GitHub ↗
(name: string, cond: boolean, detail?: string)

Source from the content-addressed store, hash-verified

22
23let failures = 0;
24function check(name: string, cond: boolean, detail?: string): void {
25 if (cond) {
26 console.log(` ok ${name}`);
27 } else {
28 failures++;
29 console.log(`FAIL ${name}${detail ? ` — ${detail}` : ""}`);
30 }
31}
32
33try {
34 // Bundle with the SAME flags the package build uses (esm, node target), so

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected