@archastro/sdk
    Preparing search index...

    Interface ScriptTestAssertion

    One test.expect(...).<matcher> call from a ScriptTest run. Matchers never raise (the script language has no exceptions) — each call emits a structured assertion entry that the test runner harvests into the per-test report. Pass/fail is captured on :pass; :expected and :actual carry the matcher's inputs for diff rendering.

    interface ScriptTestAssertion {
        actual?: unknown;
        describe?: string[];
        expected?: unknown;
        it?: string;
        kind?: string;
        line?: number;
        matcher?: string;
        pass: boolean;
    }
    Index

    Properties

    actual?: unknown

    Actual value the matcher was called with — any JSON-safe value

    describe?: string[]

    Outer-to-inner describe path when the assertion fired

    expected?: unknown

    Expected value (or arguments to the matcher) — any JSON-safe value: scalar, map, or list

    it?: string

    Name of the enclosing test.it(...) block

    kind?: string

    Output entry kind, always "assertion" for this schema

    line?: number

    Source line of the expect(...) call

    matcher?: string

    Matcher name (toEqual, toBe, toBeOk, toBeError, toContain, toMatch, toHaveLength)

    pass: boolean

    True when the matcher succeeded