Hi all,
This is my solution for the Boss Machine. You can view the source on github.
Like others I ran into problems when starting this project. Others have posted various solutions. In my case i did npm install--legacy-peer-deps
which installed older, compatible dependencies. This solved almost all errors.
All tests appear to run correctly, though there are some ‘setHeader’ errors occurring. This does not seem to adversly affect the running of the tests.
I did not look at the solution (still haven’t!) and I am pleased that I was able to write my solution without any help.
Of note, in the bonus work solution, the readme file suggests you may need to use a combination of different routes to accomplish the bonus goals. This is not really necessary. Use the test.js to see what the expected results should be. It is looking to GET
work for a minion, but the getAllFromDatabase
function returns all work for all minions. I used Array.from()
on the returned data and then filter
ed the data for the correct minion. This worked for me.
Hope this solution helps anyone struggling.