We should find a way in which the tests can discover the js files that are being loaded from the widget's js file. I'm happy for that to be tackled outside of this ticket though. In that case, a ticket should be created and this line should still be removed here, accepting that the tests will fail until the other ticket is fixed.