MCPcopy
hub / github.com/locustio/locust / createStore

Function createStore

locust/webui/src/test/testUtils.tsx:8–13  ·  view source on GitHub ↗
(initialState = {})

Source from the content-addressed store, hash-verified

6import rootReducer from 'redux/slice/root.slice';
7
8const createStore = (initialState = {}) =>
9 configureStore({
10 reducer: rootReducer,
11 preloadedState: initialState,
12 middleware: getDefaultMiddleware => getDefaultMiddleware().concat(api.middleware),
13 });
14
15export const renderWithProvider = (Component: React.ReactElement, initialState = {}) => {
16 const store = createStore(initialState);

Callers 1

renderWithProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…