Reputation: 11
When I right-click in IntelliJ to run a Jasmine test in Karma this conf file is passed to Karma:
C:\Users\jpatterson.IntellJIdea2018\config\plugins\js-karma\js_reporter\karma-intellij\lib\intellij.conf.js
How can I get Karma to use the karma.conf.js file associated with my project?
Upvotes: 1
Views: 2563
Reputation: 93728
intellij.conf.js
is a helper that actually loads your karma configuration file, parses it and does some preprocessing (coverage configuring, sourcemaps, etc). There is no way to avoid using this config when running Karma from IDEA. But you shouldn't normally care about this, as your karma.conf.js
is still used
Upvotes: 2
Reputation: 547
Most probably you have to update your default Karma run configuration.
Go to:
Run > Edit Configurations... > Defaults > Karma and set the needed paths there.
Upvotes: 0