Testing expected Errors with Jest
While trying to create consistency in my tests for my Open Sauced (previous revived), I found testing my reducer functions to be challenging.
My reducer is simplistic and possibly naive:
// reducers.js
export function goalsReducer(state, action) {
switch (action.type) {
case "GET":
return state.repository...