DEV Community

Discussion on: Laravel CRUD example with vue3 composition-api & jest unit tests

Collapse
 
rafalg profile image
Rafał

You might want to try going through the tutorial, there are some errors to correct. I've just finished step 7 and there were two problems so far:

  • resources/js/components/BookIndex.vue - this should actually be resources/js/components/books/BookIndex.vue, that was a fairly easy fix
  • const fakeData = Promise.resolve({"data": fakeBook}); - this should be wrapped in additional "data", without it one of the tests fails. That took a while longer to figure out.

Great that there's a git repo with the final result, but we should be able to follow the tutorial and build the result step-by-step.