The current npm-test image just has npm and ruby/jsduck installed and can do all the basic things MediaWiki extensions need, but we also need a version with xvfb/chromium/firefox to be able to run qunit (and selenium I'm guessing) too.
As an example mediawiki/extensions/WikibaseJavaScriptApi uses karma / phantomjs