Skip to content

Test Cases ​

🕙 Start time⌛ Duration
11/25/2026, 4:37:09 PM4.293 s
✅ Passed❌ Failed⏩ Skipped🚧 Todo⚪ Total
Test Suites90009
Tests1600016

0 passed, 0 failed, 0 skipped, 0 todo, done in 0.4679839999998876 s

5 passed, 0 failed, 0 skipped, 0 todo, done in 50.06601499999988 s

✅ createMiddleware
   ✅ forwards unmatched actions unchanged and delivers a matched action before its projection
   ✅ delivers the original action when the outbound mapper returns null
   ✅ returns the downstream result for the original action
   ✅ passes non-action inputs and their downstream results through without mapping
   ✅ isolates machine state when the same middleware is installed in two stores

4 passed, 0 failed, 0 skipped, 0 todo, done in 16.142946999999936 s

✅ createFSMSlice test
   ✅ equal state
   ✅ validate state
   ✅ routes actions by slice name when two slices use the same FSM class
   ✅ routes to both reducers when both slices use the class id as their name

4 passed, 0 failed, 0 skipped, 0 todo, done in 45.8744529999999 s

✅ createFSMSlice state projection
   ✅ stores the initial snapshot and reads current context on every dispatch
   ✅ passes the same snapshot shape to the mapper at initialization and on updates
   ✅ keeps the top-level machine context independent of the Redux snapshot
   ✅ keeps reserved raw fields accessible in the nested context

3 passed, 0 failed, 0 skipped, 0 todo, done in 49.64808500000004 s

✅ slice routing names
   ✅ uses the constructed machine correlationId for omitted and empty names
   ✅ warns on collision in one store while preserving both explicit action routes
   ✅ allows the same name across stores and checks newly mounted reducers on replacement