Const
Vitest/Jest matchers: expect.extend(matchers), then expect(m).toBeIn(State.X).
expect.extend(matchers)
expect(m).toBeIn(State.X)
Passes when the machine is in state; the message names the states it is in.
state
Why it failed, or for .not, why it passed.
.not
Vitest/Jest matchers:
expect.extend(matchers), thenexpect(m).toBeIn(State.X).