I also was receiving this same error:
on a fresh Pop!_OS 20.04 install (non-docker). I resolved it by running
bundle exec bin/rake qunit:test
and I noticed it installed a bunch of npm packages before starting to run the tests. Once that was done, I started the rails server back up and I could access qunit in the browser with localhost:3000/qunit.