ConformanceCase
Defined in: mcp-code/src/lib/conformance.ts:49
Properties
Section titled “Properties”before?
Section titled “before?”
optionalbefore?:object
Defined in: mcp-code/src/lib/conformance.ts:54
Run first on the same executor (its outcome is ignored) — for fresh-state and recovery cases.
code:
string
limits?
Section titled “limits?”
optionallimits?:Partial<CodeLimits>
check?
Section titled “check?”
optionalcheck?: (result,bridge,elapsedMs) =>string|undefined
Defined in: mcp-code/src/lib/conformance.ts:60
Further checks — return a failure description, or undefined when the case passes.
Parameters
Section titled “Parameters”result
Section titled “result”bridge
Section titled “bridge”elapsedMs
Section titled “elapsedMs”number
Returns
Section titled “Returns”string | undefined
code:
string
Defined in: mcp-code/src/lib/conformance.ts:51
concurrency?
Section titled “concurrency?”
optionalconcurrency?:number
Defined in: mcp-code/src/lib/conformance.ts:56
Run this many executions concurrently; every one must meet expect.
Default
Section titled “Default”1expect
Section titled “expect”expect: {
ok:true;value?:unknown; } | {errorName:string|string[];ok:false; }
Defined in: mcp-code/src/lib/conformance.ts:58
errorName may list several acceptable typed errors.
limits?
Section titled “limits?”
optionallimits?:Partial<CodeLimits>
Defined in: mcp-code/src/lib/conformance.ts:52
name:
string
Defined in: mcp-code/src/lib/conformance.ts:50