text: import { all } from '@redux-saga/core/effects'
  import { combineReducers } from 'redux'
  import { authSaga } from './auth'
  //imports all file except index.js
  const req = require.context('.', true, /^(?!.\/index)(?!.\/__tests__).*.js$/)
  const modules = {}
  
  req.keys().forEach((key) => {
    const regex = /.\/(.*?).js$/
    const moduleName = regex.test(key) && key.match(regex)[1]
    modules[moduleName] = req(key).default
  })
  
  export function* rootSaga() {
    yield all([authSaga()])
  }
  
  export default combineReducers(modules)
  