Passing argument to ng test (angular karma project)
Hello,
I have a Project, were was decided to use symlinks for different angular modules. The testing, therefore, can be run successfully using the script in package.json:
"test": "ng test --preserve-symlinks",
The problem arises now if I want to use Webstorm to run this test. I would like to have the possibility to pass for the
ng test
the
--preserve-symlinks
Argument
If I create Karma run/debug configuration reusing predefined values (which should be ok defined for the project), and run it Karma is started:
/usr/local/bin/node <blabla>/@angular/cli/bin/ng test cds-lung --karma-config /Applications/WebStorm.app/Contents/plugins/js-karma/js_reporter/karma-intellij/lib/intellij.conf.js
Result:
- Webstorm waits for a captured browser, Chrome browser for Karma is always i loading phase (event if i increase wait time to 21 minutes).
Expected:
- Webstorm supports the preserve symlinks argument for passing to the ng test (not node!)
- Using the template i can run and debug my project tests
For every hint and every workaround im very open, if not, must then switch to visual code
Please sign in to leave a comment.
Since 2019.1.*, Karma run configuration has Karma options: field that you can use for passing additional CLI flags to karma/angular cli: