github statelyai/xstate @xstate/test@2.0.0-beta.3

latest release: xstate@6.0.0-beta.6
pre-release5 days ago

Minor Changes

  • e67ce38: Use testPaths(machine, { cases }) to exercise exact payloads for enabled
    events, including events that lead to the same state. Set checkUnhandled
    per event to verify that the implementation ignores it where the machine
    has no enabled transition.

    await testPaths(machine, {
      cases: { APPROVE: [{ script: 0 }] },
      checkUnhandled: { APPROVE: true },
      sut
    });

    Use createTestModel() to test and replay a standalone specification written
    with TypeScript functions.

Don't miss a new xstate release

NewReleases is sending notifications on new releases.