IFClite TypeScript API
    Preparing search index...

    Interface RunBundleTestsOptions

    interface RunBundleTestsOptions {
        bail?: boolean;
        bundle: Bundle;
        evaluateRegex?: RegexEvaluator;
        grants: readonly Capability[];
        loadFixture?: (name: string) => Promise<unknown>;
        runtime: ExtensionRuntime;
    }
    Index
    bail?: boolean

    Stop on first failure. Default false — running all tests gives the user a fuller picture.

    bundle: Bundle
    evaluateRegex?: RegexEvaluator

    Evaluate an expect.regex matcher. Defaults to defaultRegexEvaluator (synchronous, in-process new RegExp(...).test(...)), which is identical to the runner's behaviour before this option existed. A host that can run the check somewhere isolated (a Worker with a timeout, for instance) supplies its own evaluator here — see the module doc on RegexEvaluator.

    grants: readonly Capability[]
    loadFixture?: (name: string) => Promise<unknown>

    Resolve the named fixture into a ctx the wrapped entry sees as __ifclite_ctx__. Called once per test. If omitted the runner falls back to an empty { bim: {} } stub so library tests can exercise the runner without spinning up a real IfcDataStore.

    Hosts wire this to whichever fixture loader they ship — the CLI may stream a tests/models/.ifc off disk; the viewer may resolve it from an in-memory fixture map shipped with the app.