Hello how can I use ES6 with Jest. Because they send me a mistake in spread (operator) and export. How to modify jest?
export default function reducer(state={ open:false }, action) { switch (action.type) { case "HANDLE_TAP_HOME": { return {...state,open:action.open} } } return state } test
import base from '../../client/src/redux/reducer/reducers/Admin/base/Index' describe('request to Reducer',()=>{ it('fetch',()=>{ expect(base(undefiend,{type:'nothing'})).toEqual({ open:false }) }) })