switchyard
    Preparing search index...

    Variable matchersConst

    matchers: {
        toBeIn(
            received: Machine<unknown>,
            state: State,
        ): { message: () => string; pass: boolean };
    } = ...

    Vitest/Jest matchers: expect.extend(matchers), then expect(m).toBeIn(State.X).

    Type Declaration

    • toBeIn: function
      • Passes when the machine is in state; the message names the states it is in.

        Parameters

        Returns { message: () => string; pass: boolean }

        • message: () => string

          Why it failed, or for .not, why it passed.

        • pass: boolean