types
Get a mapping of all used reducer-names to the internally used action-types. If no strings are provided, a complete map of all names is returned. Otherwise provide a set of requested names, separated by colon.
This is helpful when integrating redux-sands
with testing.
// Example:
// ...
const wrapper = new ReduxWrapper({ called: "demo" });
wrapper
.add({ component })
.add({ update: (state, action) => ({ ...state, ...action });
const types = wrapper.types("update");
// types === { update: "DEMO_UPDATE" }
Last updated