How does js-karma plugin gets the path of the tests files? (Segrey)
Hi man, sorry for bothering you again. I was wondering if you could explain me how the js-karma plugin gets the path of the tests files Karma is running.
I wanna use this to be able to open the file when the user clicks on the test in Test Explorer.
请先登录再写评论。
Hey! Sorry for the delay.
When IDE runs Karma tests, the test path are not exposed to IDE (https://github.com/karma-runner/karma/issues/505). Instead, IDE indexes all test files and maintains (test name) -> (test path) map.