• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atlp-rwanda / vikings-ec-fe / a474b1e0-13e7-48c4-ac64-e30d2df1868e

pending completion
a474b1e0-13e7-48c4-ac64-e30d2df1868e

Pull #26

circleci

Fidela1
feat: Implement provide ratings
Pull Request #26: feat: Implement provide ratings

130 of 232 branches covered (56.03%)

Branch coverage included in aggregate %.

53 of 53 new or added lines in 6 files covered. (100.0%)

601 of 730 relevant lines covered (82.33%)

7.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/store.js
1
import { configureStore } from '@reduxjs/toolkit';
2
import logger from 'redux-logger';
3
import thunk from 'redux-thunk';
4
import storage from 'redux-persist/lib/storage';
5
import { persistReducer, persistStore } from 'redux-persist';
6
import welcomeReducer from './features/auth/welcomeSlice';
7
import loginReducer from './features/auth/loginSlice';
8
import googleAuthReducer from './features/auth/googleAuthSlice';
9
import signupReducer from './features/auth/signupSlice';
10
import twoFactorAuthReducer from './features/auth/twoFactorAuth';
11
import forgotPasswordReducer from './features/auth/forgotPasswordSlice';
12
import resetPasswordReducer from './features/auth/resetPasswordSlice';
13
import profile from './features/profile/getProfileSlice';
14
import updateProfile from './features/profile/updateProfileSlice';
15
import verifyEmailReducer from './features/auth/VerifyEmailSlice';
16
import updatePasswordReducer from './features/auth/updatePasswordSlice';
17
import getProductsReducer from './features/product/getProductsSilice';
18
import singleProductReducer from './features/product/singleProductSlice';
19
import getRatingsReducer from './features/product/getRatingsSlice';
20
import provideRatingsReducer from './features/api/ratings/ratingsSlice';
21

22
const middlewares = [];
25✔
23

24
if (process.env.NODE_ENV === 'development') {
25!
25
  middlewares.push(logger);
×
26
}
27

28
const persistConfig = {
25✔
29
  key: 'root',
30
  storage,
31
};
32

33
const persistedLogin = persistReducer(persistConfig, loginReducer);
25✔
34
const persistedTwoFactor = persistReducer(persistConfig, twoFactorAuthReducer);
25✔
35
const store = configureStore({
25✔
36
  reducer: {
37
    message: welcomeReducer,
38
    login: persistedLogin,
39
    googleAuth: googleAuthReducer,
40
    signup: signupReducer,
41
    twoFactorAuth: persistedTwoFactor,
42
    forgotPassword: forgotPasswordReducer,
43
    resetPassword: resetPasswordReducer,
44
    verifyEmail: verifyEmailReducer,
45
    profile,
46
    updateProfile,
47
    updatePassword: updatePasswordReducer,
48
    product: getProductsReducer,
49
    singleProduct: singleProductReducer,
50
    getRatings: getRatingsReducer,
51
    provideRating: provideRatingsReducer,
52
  },
53
  middleware: [...middlewares, thunk],
54
});
55

56
export const persistor = persistStore(store);
25✔
57
export default store;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc