Open nucleogenesis opened 6 months ago
Hi @nucleogenesis could I take a look at this isuse?
Hi @oge1ata, thank you for volunteering, looking at the issue I think this could be open for contribution. It may help to spend some time looking at existing test suites, such as useFetchTree
that @nucleogenesis referenced.
Hey @MisRob Thanks for the assignment. I'd take a look at it and tell you if I have any issues.
Hi @oge1ata, are you still planning to work in this?
Overview
The quiz creation updates added a new
useQuizResources
module that extends an also-newuseFetchTree
module.useFetchTree
has tests written for it butuseQuizResources
does not.Acceptance criteria
There is no real need to test that the
useFetchTree
modules do what they're supposed to so they can likely just be mocked to return a suitable data structure.annotateTopicsWithDescendantCounts
-- see the comment above it to get a sense for what is supposed to be happening here.fetchQuizResources
andfetchMoreQuizResources
functions