Test Cases
| 🕙 Start time | ⌛ Duration |
|---|---|
| 11/25/2026, 4:37:09 PM | 4.293 s |
| ✅ Passed | ❌ Failed | ⏩ Skipped | 🚧 Todo | ⚪ Total | |
|---|---|---|---|---|---|
| Test Suites | 9 | 0 | 0 | 0 | 9 |
| Tests | 16 | 0 | 0 | 0 | 16 |
✅ tests/automataRedux.test.ts [link]
0 passed, 0 failed, 0 skipped, 0 todo, done in 0.4679839999998876 s
✅ tests/middleware.test.ts [link]
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✅ tests/slice.test.ts [link]
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✅ tests/sliceProjection.test.ts [link]
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✅ tests/sliceRouting.test.ts [link]
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