Just spent ages debugging why our tests were breaking when using DataLoader and eventually discovered that since we were using jest.useFakeTimers() it was never resolving the batch.
Would be good to have some kind of warning about this in the readme.
Activity
pedrorfernandes commentedon Jul 5, 2023
it works with
because dataloader uses
process.nextTick(if in node)however, I still haven't figured out how to advance the timers properly to test the dataloader itself