Chore: Expand test suite to cover all redux functionality#1613
Chore: Expand test suite to cover all redux functionality#1613jumpinjackie merged 3 commits intomasterfrom
Conversation
Co-authored-by: jumpinjackie <563860+jumpinjackie@users.noreply.github.com>
|
@copilot Build errors. Pls fix. |
Co-authored-by: jumpinjackie <563860+jumpinjackie@users.noreply.github.com>
... Fixed in a385d4d. Three issues addressed:
|
Expands redux test coverage to ensure all reducers, action creators, and store utilities are adequately tested — a prerequisite for a clean migration to Redux Toolkit.
New tests by area
test/reducers/viewer.spec.tsMAP_ENABLE_SELECT_DRAGPAN—selectCanDragPanstate togglingtest/reducers/toolbar.spec.tsCOMPONENT_CLOSE— closes component flyout; guards against unregistered context menuFUSION_SET_ELEMENT_STATE— closes task menu whentaskPaneVisible=falseFUSION_SET_TASK_PANE_VISIBILITY— closes task menu flyout onfalsetest/reducers/config.spec.tsSET_LOCALE— locale updateMAP_ENABLE_SELECT_DRAGPAN—selectCanDragPanupdatetest/reducers/map-state.spec.tsPreviously untested layer management actions:
MAP_REFRESH,MAP_SET_LAYER_TRANSPARENCY,MAP_SHOW_SELECTED_FEATURE,EXTERNAL_LAYERS_READY,LAYER_ADDED(with/without default style),REMOVE_LAYER,SET_LAYER_VISIBILITY,SET_LAYER_OPACITY,SET_HEATMAP_LAYER_BLUR,SET_HEATMAP_LAYER_RADIUS,SET_LAYER_INDEX,SET_LAYER_VECTOR_STYLE,ADD_LAYER_BUSY_WORKER,REMOVE_LAYER_BUSY_WORKERtest/actions/map.spec.tssetMapSwipeMode/updateMapSwipePositionaction creatorssetCurrentViewthunk — dispatchesMAP_SET_VIEWonly when the view meaningfully differs from the current statetest/store/configure-store.spec.ts(new)extraReducersWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
storybook.js.org/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /home/REDACTED/work/mapguide-react-layout/mapguide-react-layout/node_modules/.bin/storybook build -c .storybook(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.