WEB-11922 [Dart] Improve Karma support