area1707/grace-shopper

User Testing for Front,Backend,Reducer

Opened this issue · 3 comments

Write 1 backend test and 1 front end test for users route and UserProfile component

Front end test successful

  • needed to export UserProfile as dumb component
  • needed to modify history.js to account for testing
  • needed to add .babelrc and install testing modules

Back end test failed

  • need to refactor server/start to only include code to start db
  • need to move all middleware to middleware file
  • TEAM: check your paths wherever you use middleware

Half of this issue is complete and merged with master, will tackle other half today!

Backend test successful - got approval to refactor start.js from team. Now app is inside middleware.js and start.js requires app and starts server