Skip to content

@xstate/test@2.0.0-beta.3

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 00:15
· 13 commits to next since this release
04b26b8

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.