Currently, karma doesn't export karma command.
You recommend to install karma-cli locally to the project in case of npm test.
This is why It's for separation of concerns. #1078 #1322
But, some documents describe using ./node_modules/karma/bin/karma now.
https://github.com/karma-runner/karma/blob/master/docs/plus/02-travis.md
https://github.com/karma-runner/karma/blob/master/docs/plus/04-semaphore.md
In addition, karma-cli specifies the preferGlobal.
https://github.com/karma-runner/karma-cli/blob/master/package.json#L41
I feel that there is no consistency.
Solution
- Export
karma command and treats karma-cli as just global command I/F. (+1)
- Remove
bin/karma from this repository and remove the preferGlobal from karma-cli.
Thank you.
Currently, karma doesn't export
karmacommand.You recommend to install
karma-clilocally to the project in case ofnpm test.This is why It's for separation of concerns. #1078 #1322
But, some documents describe using
./node_modules/karma/bin/karmanow.https://github.com/karma-runner/karma/blob/master/docs/plus/02-travis.md
https://github.com/karma-runner/karma/blob/master/docs/plus/04-semaphore.md
In addition,
karma-clispecifies thepreferGlobal.https://github.com/karma-runner/karma-cli/blob/master/package.json#L41
I feel that there is no consistency.
Solution
karmacommand and treatskarma-clias just global command I/F. (+1)bin/karmafrom this repository and remove thepreferGlobalfromkarma-cli.Thank you.